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 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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException