Class MojoExecutor
java.lang.Object
org.apache.maven.lifecycle.internal.MojoExecutor
- Direct Known Subclasses:
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
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected static class
protected class
Aggregating mojo executions (possibly) modify all MavenProjects, including those that are currently in use by concurrently running mojo executions. -
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) protected MojoExecutor.NoExceptionCloseable
getProjectLock
(MavenSession session, MojoDescriptor mojoDescriptor) newDependencyContext
(MavenSession session, List<MojoExecution> mojoExecutions) protected boolean
useProjectLock
(MavenSession session)
-
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
-
getProjectLock
protected MojoExecutor.NoExceptionCloseable getProjectLock(MavenSession session, MojoDescriptor mojoDescriptor) -
useProjectLock
-
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
-