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
-
Constructor Summary
ConstructorDescriptionMojoExecutor
(BuildPluginManager pluginManager, MavenPluginManager mavenPluginManager, LifecycleDependencyResolver lifeCycleDependencyResolver, ExecutionEventCatapult eventCatapult, javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy, MessageBuilderFactory messageBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ensureDependenciesAreResolved
(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext) void
execute
(MavenSession session, List<MojoExecution> mojoExecutions) executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) 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, MessageBuilderFactory messageBuilderFactory)
-
-
Method Details
-
newDependencyContext
public DependencyContext newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions) -
execute
public void execute(MavenSession session, List<MojoExecution> mojoExecutions) 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) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-