Package org.codehaus.plexus.maven.plugin
Class PlexusDescriptorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo
-
- org.codehaus.plexus.maven.plugin.PlexusDescriptorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-metadata", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=COMPILE) public class PlexusDescriptorMojo extends AbstractDescriptorMojoGenerates a Plexuscomponents.xmlcomponent descriptor file from source (javadoc) or class annotations and manually crafted descriptor files.- Author:
- Jason van Zyl, Trygve Laugstøl
-
-
Field Summary
Fields Modifier and Type Field Description protected FilegeneratedMetadataThe output location for the generated descriptor.protected FileintermediaryMetadataThe output location for the intermediary descriptor.protected FilestaticMetadataDirectoryThe location of manually crafted component descriptors.-
Fields inherited from class org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo
extractors, mavenProject, mavenProjectHelper, metadataGenerator, sourceEncoding
-
-
Constructor Summary
Constructors Constructor Description PlexusDescriptorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
generatedMetadata
@Parameter(defaultValue="${project.build.outputDirectory}/META-INF/plexus/components.xml", required=true) protected File generatedMetadataThe output location for the generated descriptor.
-
staticMetadataDirectory
@Parameter(defaultValue="${basedir}/src/main/resources/META-INF/plexus", required=true) protected File staticMetadataDirectoryThe location of manually crafted component descriptors. The contents of the descriptor files in this directory is merged with the information extracted from the project's sources/classes.
-
intermediaryMetadata
@Parameter(defaultValue="${project.build.directory}/components.xml", required=true) protected File intermediaryMetadataThe output location for the intermediary descriptor. This descriptors contains only the information extracted from the project's sources/classes.
-
-