Package org.apache.maven.lifecycle
Class DefaultLifecycleExecutor
java.lang.Object
org.apache.maven.lifecycle.DefaultLifecycleExecutor
- All Implemented Interfaces:
- LifecycleExecutor
@Component(role=LifecycleExecutor.class)
public class DefaultLifecycleExecutor
extends Object
implements LifecycleExecutor
A facade that provides lifecycle services to components outside maven core.
 Note that this component is not normally used from within core itself.
- Author:
- Jason van Zyl, Benjamin Bentmann, Kristian Rosenvold
- 
Field SummaryFields inherited from interface org.apache.maven.lifecycle.LifecycleExecutorROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncalculateExecutionPlan(MavenSession session, boolean setup, String... tasks) calculateExecutionPlan(MavenSession session, String... tasks) voidcalculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) voidexecute(MavenSession session) executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) Deprecated.getPluginsBoundByDefaultToAllLifecycles(String packaging) 
- 
Constructor Details- 
DefaultLifecycleExecutorpublic DefaultLifecycleExecutor()
 
- 
- 
Method Details- 
execute- Specified by:
- executein interface- LifecycleExecutor
 
- 
getPluginsBoundByDefaultToAllLifecycles- Specified by:
- getPluginsBoundByDefaultToAllLifecyclesin interface- LifecycleExecutor
- Returns:
- The plugins bound to the lifecycles of the specified packaging or nullif the packaging is unknown.
 
- 
getPhaseToLifecycleMapDeprecated.
- 
calculateExecutionPlanpublic MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
- calculateExecutionPlanin interface- LifecycleExecutor
- Throws:
- PluginNotFoundException
- PluginResolutionException
- PluginDescriptorParsingException
- MojoNotFoundException
- NoPluginFoundForPrefixException
- InvalidPluginDescriptorException
- PluginManagerException
- LifecyclePhaseNotFoundException
- LifecycleNotFoundException
- PluginVersionResolutionException
 
- 
calculateExecutionPlanpublic MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
- calculateExecutionPlanin interface- LifecycleExecutor
- Throws:
- PluginNotFoundException
- PluginResolutionException
- PluginDescriptorParsingException
- MojoNotFoundException
- NoPluginFoundForPrefixException
- InvalidPluginDescriptorException
- PluginManagerException
- LifecyclePhaseNotFoundException
- LifecycleNotFoundException
- PluginVersionResolutionException
 
- 
calculateForkedExecutionspublic void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
- calculateForkedExecutionsin interface- LifecycleExecutor
- Throws:
- MojoNotFoundException
- PluginNotFoundException
- PluginResolutionException
- PluginDescriptorParsingException
- NoPluginFoundForPrefixException
- InvalidPluginDescriptorException
- LifecyclePhaseNotFoundException
- LifecycleNotFoundException
- PluginVersionResolutionException
 
- 
executeForkedExecutionspublic List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException - Specified by:
- executeForkedExecutionsin interface- LifecycleExecutor
- Throws:
- LifecycleExecutionException
 
 
-