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