Class AbstractGenerateMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGenerateMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
GenerateComponentMojo, GenerateMojo, GeneratePostCompileMojo

public abstract class AbstractGenerateMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.codehaus.plexus.build.BuildContext
     
    protected org.apache.maven.project.MavenProject
     
    protected org.apache.maven.project.MavenProjectHelper
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
     
    void
     
    protected void
    invoke(Class<? extends org.apache.maven.plugin.AbstractMojo> mojoClass)
     
    protected void
    invoke(Class<? extends org.apache.maven.plugin.AbstractMojo> mojoClass, Map<String,Object> parameters)
     

    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

    • project

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

      @Component protected org.apache.maven.project.MavenProjectHelper projectHelper
    • buildContext

      @Component protected org.codehaus.plexus.build.BuildContext buildContext
  • Constructor Details

    • AbstractGenerateMojo

      public AbstractGenerateMojo()
  • 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 abstract void doExecute() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoFailureException
      org.apache.maven.plugin.MojoExecutionException
    • invoke

      protected void invoke(Class<? extends org.apache.maven.plugin.AbstractMojo> mojoClass) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • invoke

      protected void invoke(Class<? extends org.apache.maven.plugin.AbstractMojo> mojoClass, Map<String,Object> parameters) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException