@Component(role=Builder.class, hint="multithreaded") public class MultiThreadedBuilder extends 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 and Description |
---|
MultiThreadedBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
build(MavenSession session,
ReactorContext reactorContext,
ProjectBuildList projectBuilds,
List<TaskSegment> taskSegments,
ReactorBuildStatus reactorBuildStatus) |
public void build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus) throws ExecutionException, InterruptedException
build
in interface Builder
ExecutionException
InterruptedException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.