Package org.apache.camel.maven.packaging
Class CamelTestInfraGenerateMetadataMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.CamelTestInfraGenerateMetadataMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test-infra-generate-metadata",
threadSafe=true,
requiresDependencyResolution=COMPILE,
defaultPhase=PROCESS_CLASSES)
public class CamelTestInfraGenerateMetadataMojo
extends AbstractGeneratorMojo
Gather all classes annotated with @InfraService and create a JSON file containing all the metadata.
The JSON can be used to retrieve the test-infra information and run the services (via Camel JBang for example)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filestatic final org.jboss.jandex.DotNameprotected org.apache.maven.project.MavenProjectFields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCamelTestInfraGenerateMetadataMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) -
Method Summary
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, execute, findConfigurations, format, getProjectClassLoader, haveResourcesChanged, isJsonFile, loadClass, newTreeSet, refresh, refresh, updateResource, updateResource, velocityMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project -
generatedResourcesOutputDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File generatedResourcesOutputDir -
INFRA_SERVICE
public static final org.jboss.jandex.DotName INFRA_SERVICE
-
-
Constructor Details
-
CamelTestInfraGenerateMetadataMojo
@Inject protected CamelTestInfraGenerateMetadataMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-