Package org.apache.maven.lifecycle
Interface LifecycleExecutor
-
- All Known Implementing Classes:
DefaultLifecycleExecutor
public interface LifecycleExecutorA facade that provides lifecycle services to components outside Maven core.- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLEDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MavenExecutionPlancalculateExecutionPlan(MavenSession session, boolean setup, java.lang.String... tasks)MavenExecutionPlancalculateExecutionPlan(MavenSession session, java.lang.String... tasks)voidcalculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)voidexecute(MavenSession session)java.util.List<MavenProject>executeForkedExecutions(MojoExecution mojoExecution, MavenSession session)java.util.Set<org.apache.maven.model.Plugin>getPluginsBoundByDefaultToAllLifecycles(java.lang.String packaging)
-
-
-
Method Detail
-
getPluginsBoundByDefaultToAllLifecycles
java.util.Set<org.apache.maven.model.Plugin> getPluginsBoundByDefaultToAllLifecycles(java.lang.String packaging)
- Returns:
- The plugins bound to the lifecycles of the specified packaging or
nullif the packaging is unknown.
-
calculateExecutionPlan
MavenExecutionPlan calculateExecutionPlan(MavenSession session, java.lang.String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
- Throws:
PluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionorg.apache.maven.plugin.MojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionException
-
calculateExecutionPlan
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
- Throws:
PluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionorg.apache.maven.plugin.MojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginManagerExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionException
-
execute
void execute(MavenSession session)
-
calculateForkedExecutions
void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws org.apache.maven.plugin.MojoNotFoundException, PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException
- Throws:
org.apache.maven.plugin.MojoNotFoundExceptionPluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundExceptionPluginVersionResolutionException
-
executeForkedExecutions
java.util.List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException
- Throws:
LifecycleExecutionException
-
-