@Named @Singleton public class DefaultLifecycleExecutor extends Object implements LifecycleExecutor
ROLE| Constructor and Description |
|---|
DefaultLifecycleExecutor(LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer,
DefaultLifecycles defaultLifeCycles,
LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator,
LifecycleExecutionPlanCalculator lifecycleExecutionPlanCalculator,
MojoExecutor mojoExecutor,
LifecycleStarter lifecycleStarter,
MojoDescriptorCreator mojoDescriptorCreator) |
| Modifier and Type | Method and Description |
|---|---|
MavenExecutionPlan |
calculateExecutionPlan(MavenSession session,
boolean setup,
String... tasks) |
MavenExecutionPlan |
calculateExecutionPlan(MavenSession session,
String... tasks) |
void |
calculateForkedExecutions(MojoExecution mojoExecution,
MavenSession session) |
void |
execute(MavenSession session) |
List<MavenProject> |
executeForkedExecutions(MojoExecution mojoExecution,
MavenSession session) |
Set<Plugin> |
getPluginsBoundByDefaultToAllLifecycles(String packaging) |
@Inject public DefaultLifecycleExecutor(LifeCyclePluginAnalyzer lifeCyclePluginAnalyzer, DefaultLifecycles defaultLifeCycles, LifecycleTaskSegmentCalculator lifecycleTaskSegmentCalculator, LifecycleExecutionPlanCalculator lifecycleExecutionPlanCalculator, MojoExecutor mojoExecutor, LifecycleStarter lifecycleStarter, MojoDescriptorCreator mojoDescriptorCreator)
public void execute(MavenSession session)
execute in interface LifecycleExecutorpublic Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging)
getPluginsBoundByDefaultToAllLifecycles in interface LifecycleExecutornull if the packaging is
unknown.public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan in interface LifecycleExecutorPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionMojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic MavenExecutionPlan calculateExecutionPlan(MavenSession session, 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 List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException
executeForkedExecutions in interface LifecycleExecutorLifecycleExecutionExceptionCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.