plexus-component-metadata:generate-test-metadata

Full name:

org.codehaus.plexus:plexus-component-metadata:2.2.0-SNAPSHOT:generate-test-metadata

Description:

Generates a Plexus components.xml component descriptor file from test source (javadoc) or test class annotations and manually crafted descriptor files.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Binds by default to the lifecycle phase: process-test-classes.

Required Parameters

Name Type Since Description
<testGeneratedMetadata> File - The output location for the generated descriptor.
Default value is: ${project.build.testOutputDirectory}/META-INF/plexus/components.xml.
<testIntermediaryMetadata> File - The output location for the intermediary descriptor. This descriptors contains only the information extracted from the project's sources/classes.
Default value is: ${project.build.directory}/test-components.xml.
<testStaticMetadataDirectory> File - The 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.
Default value is: ${basedir}/src/test/resources/META-INF/plexus.

Optional Parameters

Name Type Since Description
<extractors> List<String> - The extractors to use. By default all available extractors will be used. Known extractors:
  • source
  • class

<sourceEncoding> String - The file encoding of the source files.
Default value is: ${project.build.sourceEncoding}.

Parameter Details

<extractors>

The extractors to use. By default all available extractors will be used. Known extractors:
  • source
  • class
  • Type: java.util.List<java.lang.String>
  • Required: No

<sourceEncoding>

The file encoding of the source files.
  • Type: java.lang.String
  • Required: No
  • Default: ${project.build.sourceEncoding}

<testGeneratedMetadata>

The output location for the generated descriptor.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.testOutputDirectory}/META-INF/plexus/components.xml

<testIntermediaryMetadata>

The output location for the intermediary descriptor. This descriptors contains only the information extracted from the project's sources/classes.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/test-components.xml

<testStaticMetadataDirectory>

The 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.
  • Type: java.io.File
  • Required: Yes
  • Default: ${basedir}/src/test/resources/META-INF/plexus