Class GenerateComponentMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGenerateMojo
org.apache.camel.maven.component.GenerateComponentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate", threadSafe=true, requiresDependencyResolution=COMPILE_PLUS_RUNTIME, defaultPhase=PROCESS_CLASSES) public class GenerateComponentMojo extends org.apache.camel.maven.packaging.AbstractGenerateMojo
To be used by 3rd party Camel component developers to generate metadata.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.sonatype.plexus.build.incremental.BuildContext
     
    protected org.apache.maven.project.MavenProject
     
    protected org.apache.maven.project.MavenProjectHelper
     
    protected File
    The output directory for generated resource source code
    protected File
    The output directory for generated java source code

    Fields inherited from class org.apache.camel.maven.packaging.AbstractGenerateMojo

    buildContext, project, projectHelper

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
     

    Methods inherited from class org.apache.camel.maven.packaging.AbstractGenerateMojo

    invoke, invoke

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • sourcesOutputDir

      @Parameter(defaultValue="${project.basedir}/src/generated/java") protected File sourcesOutputDir
      The output directory for generated java source code
    • resourcesOutputDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File resourcesOutputDir
      The output directory for generated resource source code
    • currentProject

      @Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject currentProject
    • currentProjectHelper

      @Component protected org.apache.maven.project.MavenProjectHelper currentProjectHelper
    • currentBuildContext

      @Component protected org.sonatype.plexus.build.incremental.BuildContext currentBuildContext
  • Constructor Details

    • GenerateComponentMojo

      public GenerateComponentMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class org.apache.camel.maven.packaging.AbstractGenerateMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
      Specified by:
      doExecute in class org.apache.camel.maven.packaging.AbstractGenerateMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException
      org.apache.maven.plugin.MojoExecutionException