Class 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 Detail

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

      • StarterGeneratorMojo

        public StarterGeneratorMojo()
    • Method Detail

      • 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