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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected org.apache.maven.artifact.factory.ArtifactFactory
    Used to look up Artifacts in the remote repository.
    protected String
     
    protected org.apache.maven.project.MavenProject
    The maven project.
    protected File
    The source pom template file.
    protected File
     

    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.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

    • 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
    • name

      @Parameter(property="name", required=true) protected String name
  • 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