@Named @Singleton public class MojoExecutor extends Object
Executes an individual mojo
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.Constructor and Description |
---|
MojoExecutor(BuildPluginManager pluginManager,
MavenPluginManager mavenPluginManager,
LifecycleDependencyResolver lifeCycleDependencyResolver,
ExecutionEventCatapult eventCatapult,
javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor,
MavenSession session,
DependencyContext dependencyContext) |
void |
execute(MavenSession session,
List<MojoExecution> mojoExecutions,
ProjectIndex projectIndex) |
List<MavenProject> |
executeForkedExecutions(MojoExecution mojoExecution,
MavenSession session,
ProjectIndex projectIndex) |
DependencyContext |
newDependencyContext(MavenSession session,
List<MojoExecution> mojoExecutions) |
@Inject public MojoExecutor(BuildPluginManager pluginManager, MavenPluginManager mavenPluginManager, LifecycleDependencyResolver lifeCycleDependencyResolver, ExecutionEventCatapult eventCatapult, javax.inject.Provider<MojosExecutionStrategy> mojosExecutionStrategy)
public DependencyContext newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions)
public void execute(MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex) throws LifecycleExecutionException
LifecycleExecutionException
public void ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext) throws LifecycleExecutionException
LifecycleExecutionException
public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex) throws LifecycleExecutionException
LifecycleExecutionException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.