@Mojo(name="descriptor", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=RUNTIME, threadSafe=true) public class DescriptorGeneratorMojo extends AbstractGeneratorMojo
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
outputDirectory
The directory where the generated
plugin.xml file will be put. |
private boolean |
skipDescriptor
A flag to disable generation of the
plugin.xml in favor of a hand authored plugin descriptor. |
dependencies, encoding, extractors, goalPrefix, local, mojoScanner, packagingTypes, project, remoteRepos, skip, skipErrorNoDescriptorsFound| Constructor and Description |
|---|
DescriptorGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Generator |
createGenerator() |
void |
execute() |
protected java.io.File |
getOutputDirectory() |
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/maven") protected java.io.File outputDirectory
plugin.xml file will be put.@Parameter(defaultValue="false") private boolean skipDescriptor
plugin.xml in favor of a hand authored plugin descriptor.protected java.io.File getOutputDirectory()
getOutputDirectory in class AbstractGeneratorMojoprotected Generator createGenerator()
createGenerator in class AbstractGeneratorMojoGenerator implementation.public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractGeneratorMojoorg.apache.maven.plugin.MojoExecutionException