Class BuildPlanExecutor
java.lang.Object
org.apache.maven.lifecycle.internal.concurrent.BuildPlanExecutor
Builds the full lifecycle in weave-mode (phase by phase as opposed to project-by-project).
This builder uses a number of threads equal to the minimum of the degree of concurrency (which is the thread count
set with -T
on the command-line) and the number of projects to build. As such, building a single project
will always result in a sequential build, regardless of the thread count.
- Since:
- 3.0 Builds one or more lifecycles for a full module NOTE: This class is not part of any public api and can be changed or deleted without prior notice.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBuildPlanExecutor
(MojoExecutor mojoExecutor, ExecutionEventCatapult eventCatapult, List<ProjectExecutionListener> listeners, ConsumerPomArtifactTransformer consumerPomArtifactTransformer, BuildPlanLogger buildPlanLogger, Map<String, MojoExecutionConfigurator> mojoExecutionConfigurators, MavenPluginManager mavenPluginManager, MojoDescriptorCreator mojoDescriptorCreator, LifecycleRegistry lifecycles) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachToThread
(MavenProject currentProject) void
execute
(MavenSession session, ReactorContext reactorContext, List<TaskSegment> taskSegments)
-
Constructor Details
-
BuildPlanExecutor
@Inject public BuildPlanExecutor(@Named("concurrent") MojoExecutor mojoExecutor, ExecutionEventCatapult eventCatapult, List<ProjectExecutionListener> listeners, ConsumerPomArtifactTransformer consumerPomArtifactTransformer, BuildPlanLogger buildPlanLogger, Map<String, MojoExecutionConfigurator> mojoExecutionConfigurators, MavenPluginManager mavenPluginManager, MojoDescriptorCreator mojoDescriptorCreator, LifecycleRegistry lifecycles)
-
-
Method Details
-
execute
public void execute(MavenSession session, ReactorContext reactorContext, List<TaskSegment> taskSegments) throws ExecutionException, InterruptedException -
attachToThread
-