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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DefaultLifecycles
private LifecycleExecutionPlanCalculator
private LifeCyclePluginAnalyzer
private LifecycleStarter
private LifecycleTaskSegmentCalculator
private MojoDescriptorCreator
private MojoExecutor
Fields inherited from interface org.apache.maven.lifecycle.LifecycleExecutor
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateExecutionPlan
(MavenSession session, boolean setup, String... tasks) calculateExecutionPlan
(MavenSession session, String... tasks) void
calculateForkedExecutions
(MojoExecution mojoExecution, MavenSession session) void
execute
(MavenSession session) executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) (package private) MojoDescriptor
getMojoDescriptor
(String task, MavenSession session, MavenProject project, String invokedVia, boolean canUsePrefix, boolean isOptionalMojo) Deprecated.getPluginsBoundByDefaultToAllLifecycles
(String packaging)
-
Field Details
-
lifeCyclePluginAnalyzer
-
defaultLifeCycles
-
lifecycleTaskSegmentCalculator
-
lifecycleExecutionPlanCalculator
-
mojoExecutor
-
lifecycleStarter
-
mojoDescriptorCreator
-
-
Constructor Details
-
DefaultLifecycleExecutor
public DefaultLifecycleExecutor()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceLifecycleExecutor
-
getPluginsBoundByDefaultToAllLifecycles
- Specified by:
getPluginsBoundByDefaultToAllLifecycles
in interfaceLifecycleExecutor
- Returns:
- The plugins bound to the lifecycles of the specified packaging or
null
if the packaging is unknown.
-
getPhaseToLifecycleMap
Deprecated. -
getMojoDescriptor
MojoDescriptor getMojoDescriptor(String task, MavenSession session, MavenProject project, String invokedVia, boolean canUsePrefix, boolean isOptionalMojo) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException -
calculateExecutionPlan
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
calculateExecutionPlan
in interfaceLifecycleExecutor
- Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
calculateExecutionPlan
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
calculateExecutionPlan
in interfaceLifecycleExecutor
- Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
calculateForkedExecutions
public void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Specified by:
calculateForkedExecutions
in interfaceLifecycleExecutor
- Throws:
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
executeForkedExecutions
public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException - Specified by:
executeForkedExecutions
in interfaceLifecycleExecutor
- Throws:
LifecycleExecutionException
-