Class PackageComponentMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.PackageComponentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-components-list", threadSafe=true) public class PackageComponentMojo extends AbstractGeneratorMojo
Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in Camel.
  • Field Details

    • componentOutDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File componentOutDir
      The output directory for the generated component files
    • buildDir

      @Parameter(defaultValue="${project.build.directory}") protected File buildDir
      The project build directory
  • Constructor Details

    • PackageComponentMojo

      @Inject public PackageComponentMojo(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
      Execute goal.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
      org.apache.maven.plugin.MojoFailureException - something bad happened...
    • prepareComponent

      public int prepareComponent()