@Component(role=LifecycleExecutor.class) public class DefaultLifecycleExecutor extends Object implements LifecycleExecutor
ROLE
Constructor and Description |
---|
DefaultLifecycleExecutor() |
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) |
Map<String,Lifecycle> |
getPhaseToLifecycleMap()
Deprecated.
|
Set<Plugin> |
getPluginsBoundByDefaultToAllLifecycles(String packaging) |
public DefaultLifecycleExecutor()
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.@Deprecated public Map<String,Lifecycle> getPhaseToLifecycleMap()
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–2014 The Apache Software Foundation. All rights reserved.