Class StarterGeneratorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.springboot.maven.StarterGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-starter", threadSafe=true, defaultPhase=GENERATE_RESOURCES) public class StarterGeneratorMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • artifactFactory

      @Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
      Used to look up Artifacts in the remote repository.
    • project

      @Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
      The maven project.
    • sourcePom

      @Parameter(defaultValue="${basedir}/template-starter-pom.xml") protected File sourcePom
      The source pom template file.
    • startersDir

      @Parameter(defaultValue="${basedir}/../../components-starter") protected File startersDir
    • action

      @Parameter(property="action", required=true) protected String action
    • componentName

      @Parameter(property="componentName", required=true) protected String componentName
  • Constructor Details

    • StarterGeneratorMojo

      public StarterGeneratorMojo()
  • 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
    • doExecute

      protected void doExecute() throws Exception
      Throws:
      Exception