Class AbstractLifecycleMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
it.serendigity.maven.plugin.lifecycle.helper.AbstractLifecycleMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ExecutionPlanFileMojo,ExecutionPlanMojo
public abstract class AbstractLifecycleMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.lifecycle.DefaultLifecyclesThe Maven default built-in lifecycles.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MavenExecutionPlanInfocalculateExecutionPlan(boolean calculateSummary) protected String[]protected String[]protected String[]protected voidhandleOutput(String output) protected StringMojo parameters headerprotected booleanprotected booleanCheck if the execution should be skippedNormalize filter pluginprotected voidsetPluginToElaborate(List<String> pluginToElaborate) protected voidsetTasksToElaborate(String[] tasksToElaborate) protected booleanprotected static booleanvalidatePlugin(MavenExecutionInfo info, List<String> filterPlugin) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
defaultLifecycles
@Component protected org.apache.maven.lifecycle.DefaultLifecycles defaultLifecyclesThe Maven default built-in lifecycles.
-
-
Constructor Details
-
AbstractLifecycleMojo
public AbstractLifecycleMojo()
-
-
Method Details
-
isParamForceTasksFromSession
protected boolean isParamForceTasksFromSession() -
calculateExecutionPlan
protected MavenExecutionPlanInfo calculateExecutionPlan(boolean calculateSummary) throws org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoFailureException
-
calculateTasksToElaborate
- Throws:
org.apache.maven.plugin.MojoFailureException
-
validateMavenExecution
-
normalizeParamFilterPlugin
Normalize filter plugin- Returns:
- List of plugin to filter
-
validatePlugin
- Parameters:
info- aMavenExecutionInfofilterPlugin- a list of plugin String (artifact Id)- Returns:
- true if filterPlugin is null or contains the plugin
-
handleOutput
-
headerParametersString
Mojo parameters header- Returns:
- String parameters
-
getParamFilterPlugins
-
getPluginsToElaborate
-
setPluginToElaborate
-
retrieveTasksFromSession
protected List<String> retrieveTasksFromSession() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
getTasksToElaborate
-
setTasksToElaborate
-
isParamSkip
protected boolean isParamSkip()Check if the execution should be skipped- Returns:
- true to skip
-