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.
- Author:
- Jason van Zyl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncalculateExecutionPlan
(MavenSession session, boolean setup, String... tasks) calculateExecutionPlan
(MavenSession session, String... tasks) void
calculateForkedExecutions
(MojoExecution mojoExecution, MavenSession session) void
execute
(MavenSession session) executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) Set
<org.apache.maven.model.Plugin> getPluginsBoundByDefaultToAllLifecycles
(String packaging)
-
Field Details
-
ROLE
Deprecated.
-
-
Method Details
-
getPluginsBoundByDefaultToAllLifecycles
- Returns:
- The plugins bound to the lifecycles of the specified packaging or
null
if the packaging is unknown.
-
calculateExecutionPlan
MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
org.apache.maven.plugin.MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
calculateExecutionPlan
MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException - Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
org.apache.maven.plugin.MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
execute
-
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.MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
-
executeForkedExecutions
List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-