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
-
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
public MojoExecutor()
-
-
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
-