org.apache.maven.lifecycle.internal
Class BuilderCommon

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

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

Common code that is shared by the LifecycleModuleBuilder and the LifeCycleWeaveBuilder

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
BuilderCommon()
           
BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, Logger logger)
           
 
Method Summary
static void attachToThread(MavenProject currentProject)
           
static String getKey(MavenProject project)
           
 void handleBuildError(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, Exception e, long buildStartTime)
           
 MavenExecutionPlan resolveBuildPlan(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderCommon

public BuilderCommon()

BuilderCommon

public BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger,
                     LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator,
                     Logger logger)
Method Detail

resolveBuildPlan

public MavenExecutionPlan resolveBuildPlan(MavenSession session,
                                           MavenProject project,
                                           TaskSegment taskSegment,
                                           Set<Artifact> projectArtifacts)
                                    throws PluginNotFoundException,
                                           PluginResolutionException,
                                           LifecyclePhaseNotFoundException,
                                           PluginDescriptorParsingException,
                                           MojoNotFoundException,
                                           InvalidPluginDescriptorException,
                                           NoPluginFoundForPrefixException,
                                           LifecycleNotFoundException,
                                           PluginVersionResolutionException,
                                           LifecycleExecutionException
Throws:
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecycleNotFoundException
PluginVersionResolutionException
LifecycleExecutionException

handleBuildError

public void handleBuildError(ReactorContext buildContext,
                             MavenSession rootSession,
                             MavenSession currentSession,
                             MavenProject mavenProject,
                             Exception e,
                             long buildStartTime)

attachToThread

public static void attachToThread(MavenProject currentProject)

getKey

public static String getKey(MavenProject project)


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.