Class MultiThreadedBuilder
java.lang.Object
org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder
- All Implemented Interfaces:
Builder
@Named("multithreaded")
@Singleton
public class MultiThreadedBuilder
extends Object
implements Builder
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus)
-
Constructor Details
-
MultiThreadedBuilder
-
-
Method Details
-
build
public void build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus) throws ExecutionException, InterruptedException - Specified by:
build
in interfaceBuilder
- Throws:
ExecutionException
InterruptedException
-