Class MojoExecutor
java.lang.Object
org.apache.maven.lifecycle.internal.MojoExecutor
Executes an individual mojo
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.- Since:
- 3.0
- Author:
- Jason van Zyl, Benjamin Bentmann, Kristian Rosenvold
-
Constructor Summary
ConstructorDescriptionMojoExecutor
(BuildPluginManager pluginManager, MavenPluginManager mavenPluginManager, LifecycleDependencyResolver lifeCycleDependencyResolver, ExecutionEventCatapult eventCatapult, javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureDependenciesAreResolved
(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext) void
execute
(MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex) executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex) newDependencyContext
(MavenSession session, List<MojoExecution> mojoExecutions)
-
Constructor Details
-
MojoExecutor
@Inject public MojoExecutor(BuildPluginManager pluginManager, MavenPluginManager mavenPluginManager, LifecycleDependencyResolver lifeCycleDependencyResolver, ExecutionEventCatapult eventCatapult, javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy)
-
-
Method Details
-
newDependencyContext
public DependencyContext newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions) -
execute
public void execute(MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-
ensureDependenciesAreResolved
public void ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-
executeForkedExecutions
public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-