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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceprotected static classprotected classAggregating mojo executions (possibly) modify all MavenProjects, including those that are currently in use by concurrently running mojo executions. -
Constructor Summary
ConstructorsConstructorDescriptionMojoExecutor(BuildPluginManager pluginManager, MavenPluginManager mavenPluginManager, LifecycleDependencyResolver lifeCycleDependencyResolver, ExecutionEventCatapult eventCatapult, javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy, MessageBuilderFactory messageBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidensureDependenciesAreResolved(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext) voidexecute(MavenSession session, List<MojoExecution> mojoExecutions) executeForkedExecutions(MojoExecution mojoExecution, MavenSession session) protected MojoExecutor.NoExceptionCloseablegetProjectLock(MavenSession session, MojoDescriptor mojoDescriptor) newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions) protected booleanuseProjectLock(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
-