Package org.codehaus.mojo.buildplan
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
FieldsModifier and TypeFieldDescriptionprotected final org.apache.maven.lifecycle.DefaultLifecyclesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractLifecycleMojo(org.apache.maven.lifecycle.LifecycleExecutor lifecycleExecutor, org.apache.maven.lifecycle.DefaultLifecycles defaultLifecycles) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.lifecycle.MavenExecutionPlanfinal voidexecute()protected abstract voidprotected voidhandleOutput(String output) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeInternal
protected abstract void executeInternal() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-