org.apache.maven.lifecycle.internal
Class LifecycleWeaveBuilder

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.LifecycleWeaveBuilder

@Component(role=LifecycleWeaveBuilder.class)
public class LifecycleWeaveBuilder
extends Object

Builds the full lifecycle in weave-mode (phase by phase as opposed to project-by-project)

NOTE: Weave mode is still experimental. It may be either promoted to first class citizen at some later point in time, and it may also be removed entirely. Weave mode has much more aggressive concurrency behaviour than regular threaded mode, and as such is still under test wrt cross platform stability.

To remove weave mode from m3, the following should be removed: ExecutionPlanItem.schedule w/setters and getters DefaultLifeCycles.getScheduling() and all its use ReactorArtifactRepository has a reference to isWeave too. This class and its usage

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
LifecycleWeaveBuilder()
           
LifecycleWeaveBuilder(MojoExecutor mojoExecutor, BuilderCommon builderCommon, Logger logger, ExecutionEventCatapult eventCatapult)
           
 
Method Summary
 void build(ProjectBuildList projectBuilds, ReactorContext buildContext, List<TaskSegment> taskSegments, MavenSession session, ExecutorService executor, ReactorBuildStatus reactorBuildStatus)
           
static boolean isWeaveMode(MavenExecutionRequest request)
           
static void setWeaveMode(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleWeaveBuilder

public LifecycleWeaveBuilder()

LifecycleWeaveBuilder

public LifecycleWeaveBuilder(MojoExecutor mojoExecutor,
                             BuilderCommon builderCommon,
                             Logger logger,
                             ExecutionEventCatapult eventCatapult)
Method Detail

build

public void build(ProjectBuildList projectBuilds,
                  ReactorContext buildContext,
                  List<TaskSegment> taskSegments,
                  MavenSession session,
                  ExecutorService executor,
                  ReactorBuildStatus reactorBuildStatus)
           throws ExecutionException,
                  InterruptedException
Throws:
ExecutionException
InterruptedException

isWeaveMode

public static boolean isWeaveMode(MavenExecutionRequest request)

setWeaveMode

public static void setWeaveMode(Properties properties)


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.