Package org.codehaus.plexus.maven.plugin
Class PlexusTestDescriptorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo
org.codehaus.plexus.maven.plugin.PlexusTestDescriptorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-test-metadata",
defaultPhase=PROCESS_TEST_CLASSES,
requiresDependencyResolution=TEST)
public class PlexusTestDescriptorMojo
extends AbstractDescriptorMojo
Generates a Plexus
components.xml
component descriptor file from test source (javadoc)
or test class annotations and manually crafted descriptor files.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
The output location for the generated descriptor.protected File
The output location for the intermediary descriptor.protected File
The location of manually crafted component descriptors.Fields inherited from class org.codehaus.plexus.maven.plugin.AbstractDescriptorMojo
extractors, mavenProject, mavenProjectHelper, metadataGenerator, sourceEncoding
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
testGeneratedMetadata
@Parameter(defaultValue="${project.build.testOutputDirectory}/META-INF/plexus/components.xml", required=true) protected File testGeneratedMetadataThe output location for the generated descriptor. -
testStaticMetadataDirectory
@Parameter(defaultValue="${basedir}/src/test/resources/META-INF/plexus", required=true) protected File testStaticMetadataDirectoryThe 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. -
testIntermediaryMetadata
@Parameter(defaultValue="${project.build.directory}/test-components.xml", required=true) protected File testIntermediaryMetadataThe output location for the intermediary descriptor. This descriptors contains only the information extracted from the project's sources/classes.
-
-
Constructor Details
-
PlexusTestDescriptorMojo
public PlexusTestDescriptorMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-