@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 LifecycleExecutor
public Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging)
getPluginsBoundByDefaultToAllLifecycles
in interface LifecycleExecutor
null
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 LifecycleExecutor
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan
in interface LifecycleExecutor
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
public void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateForkedExecutions
in interface LifecycleExecutor
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException
executeForkedExecutions
in interface LifecycleExecutor
LifecycleExecutionException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.