@Component(role=LifecycleExecutor.class) public class DefaultLifecycleExecutor extends java.lang.Object implements LifecycleExecutor
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) |
java.util.Map<java.lang.String,Lifecycle> |
getPhaseToLifecycleMap()
Deprecated.
|
java.util.Set<org.apache.maven.model.Plugin> |
getPluginsBoundByDefaultToAllLifecycles(java.lang.String packaging) |
public void execute(MavenSession session)
execute in interface LifecycleExecutorpublic java.util.Set<org.apache.maven.model.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()
public MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, java.lang.String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan in interface LifecycleExecutorPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionorg.apache.maven.plugin.MojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic MavenExecutionPlan calculateExecutionPlan(MavenSession session, java.lang.String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateExecutionPlan in interface LifecycleExecutorPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionorg.apache.maven.plugin.MojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws org.apache.maven.plugin.MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
calculateForkedExecutions in interface LifecycleExecutororg.apache.maven.plugin.MojoNotFoundExceptionPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionpublic java.util.List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException
executeForkedExecutions in interface LifecycleExecutorLifecycleExecutionException