@Component(role=LifecycleExecutor.class) public class DefaultLifecycleExecutor extends java.lang.Object implements LifecycleExecutor
| Modifier and Type | Field and Description |
|---|---|
private DefaultLifecycles |
defaultLifeCycles |
private LifecycleExecutionPlanCalculator |
lifecycleExecutionPlanCalculator |
private LifeCyclePluginAnalyzer |
lifeCyclePluginAnalyzer |
private LifecycleStarter |
lifecycleStarter |
private LifecycleTaskSegmentCalculator |
lifecycleTaskSegmentCalculator |
private MojoDescriptorCreator |
mojoDescriptorCreator |
private MojoExecutor |
mojoExecutor |
ROLE| Constructor and Description |
|---|
DefaultLifecycleExecutor() |
| Modifier and Type | Method and Description |
|---|---|
MavenExecutionPlan |
calculateExecutionPlan(MavenSession session,
boolean setup,
java.lang.String... tasks) |
MavenExecutionPlan |
calculateExecutionPlan(MavenSession session,
java.lang.String... tasks) |
void |
calculateForkedExecutions(MojoExecution mojoExecution,
MavenSession session) |
void |
execute(MavenSession session) |
java.util.List<MavenProject> |
executeForkedExecutions(MojoExecution mojoExecution,
MavenSession session) |
(package private) MojoDescriptor |
getMojoDescriptor(java.lang.String task,
MavenSession session,
MavenProject project,
java.lang.String invokedVia,
boolean canUsePrefix,
boolean isOptionalMojo) |
java.util.Map<java.lang.String,Lifecycle> |
getPhaseToLifecycleMap()
Deprecated.
|
java.util.Set<Plugin> |
getPluginsBoundByDefaultToAllLifecycles(java.lang.String packaging) |
@Requirement private LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer
@Requirement private DefaultLifecycles defaultLifeCycles
@Requirement private LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator
@Requirement private LifecycleExecutionPlanCalculator lifecycleExecutionPlanCalculator
@Requirement private MojoExecutor mojoExecutor
@Requirement private LifecycleStarter lifecycleStarter
@Requirement private MojoDescriptorCreator mojoDescriptorCreator
public void execute(MavenSession session)
execute in interface LifecycleExecutorpublic java.util.Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(java.lang.String packaging)
getPluginsBoundByDefaultToAllLifecycles in interface LifecycleExecutornull if the packaging is
unknown.@Deprecated public java.util.Map<java.lang.String,Lifecycle> getPhaseToLifecycleMap()
MojoDescriptor getMojoDescriptor(java.lang.String task, MavenSession session, MavenProject project, java.lang.String invokedVia, boolean canUsePrefix, boolean isOptionalMojo) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, java.lang.String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan in interface LifecycleExecutorPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionMojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic MavenExecutionPlan calculateExecutionPlan(MavenSession session, java.lang.String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan in interface LifecycleExecutorPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionMojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateForkedExecutions in interface LifecycleExecutorMojoNotFoundExceptionPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic java.util.List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException
executeForkedExecutions in interface LifecycleExecutorLifecycleExecutionException