Class MultiThreadedBuilder
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder
-
- All Implemented Interfaces:
Builder
@Component(role=Builder.class, hint="multithreaded") 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
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.-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
- Author:
- Kristian Rosenvold 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
Constructors Constructor Description MultiThreadedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus)
-
-
-
Method Detail
-
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
-
-