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.DefaultLifecycles
The Maven default built-in lifecycles.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MavenExecutionPlanInfo
calculateExecutionPlan
(boolean calculateSummary) protected String[]
protected String[]
protected String[]
protected void
handleOutput
(String output) protected String
Mojo parameters headerprotected boolean
protected boolean
Check if the execution should be skippedNormalize filter pluginprotected void
setPluginToElaborate
(List<String> pluginToElaborate) protected void
setTasksToElaborate
(String[] tasksToElaborate) protected boolean
protected static boolean
validatePlugin
(MavenExecutionInfo info, List<String> filterPlugin) 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
Methods 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
- aMavenExecutionInfo
filterPlugin
- 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
-