Builder@Component(role=Builder.class, hint="multithreaded") public class MultiThreadedBuilder extends java.lang.Object implements Builder
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.
| Constructor | Description |
|---|---|
MultiThreadedBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
build(MavenSession session,
ReactorContext reactorContext,
ProjectBuildList projectBuilds,
java.util.List<TaskSegment> taskSegments,
ReactorBuildStatus reactorBuildStatus) |
public void build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, java.util.List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException