Class AbstractLifecycleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildplan.AbstractLifecycleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ListMojo, ListPhaseMojo, ListPluginMojo

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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.maven.lifecycle.DefaultLifecycles
     

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

    ROLE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractLifecycleMojo(org.apache.maven.lifecycle.LifecycleExecutor lifecycleExecutor, org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.maven.lifecycle.MavenExecutionPlan
     
    final void
     
    protected abstract void
     
    protected 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

    • defaultLifecycles

      protected final org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles
  • Constructor Details

    • AbstractLifecycleMojo

      protected AbstractLifecycleMojo(org.apache.maven.lifecycle.LifecycleExecutor lifecycleExecutor, org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles)
  • Method Details

    • calculateExecutionPlan

      protected org.apache.maven.lifecycle.MavenExecutionPlan calculateExecutionPlan() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • handleOutput

      protected void handleOutput(String output)
    • execute

      public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • executeInternal

      protected abstract void executeInternal() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException