@Mojo(name="descriptor",
defaultPhase=PROCESS_CLASSES,
requiresDependencyResolution=RUNTIME,
threadSafe=true)
public class DescriptorGeneratorMojo
extends AbstractGeneratorMojo
Generate a plugin descriptor.
Note: Since 3.0, for Java plugin annotations support, default phase defined by this goal is after the "compilation" of any scripts. This doesn't override the default binding coded at generate-resources phase in Maven core.
| Modifier and Type | Field | Description |
|---|---|---|
protected File |
outputDirectory |
The directory where the generated
plugin.xml file will be put. |
dependencies, encoding, extractors, goalPrefix, local, mojoScanner, packagingTypes, project, remoteRepos, skip, skipErrorNoDescriptorsFound| Constructor | Description |
|---|---|
DescriptorGeneratorMojo() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.apache.maven.tools.plugin.generator.Generator |
createGenerator() |
|
void |
execute() |
|
protected File |
getOutputDirectory() |
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/maven")
protected File outputDirectory
plugin.xml file will be put.protected File getOutputDirectory()
getOutputDirectory in class AbstractGeneratorMojoprotected org.apache.maven.tools.plugin.generator.Generator createGenerator()
createGenerator in class AbstractGeneratorMojoGenerator implementation.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in class AbstractGeneratorMojoorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.