Class BuilderCommon
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.builder.BuilderCommon
-
@Component(role=BuilderCommon.class) public class BuilderCommon extends java.lang.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
Constructors Constructor Description BuilderCommon()BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, org.codehaus.plexus.logging.Logger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidattachToThread(MavenProject currentProject)static java.lang.StringgetKey(MavenProject project)voidhandleBuildError(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, java.lang.Throwable t, long buildStartTime)MavenExecutionPlanresolveBuildPlan(MavenSession session, MavenProject project, TaskSegment taskSegment, java.util.Set<org.apache.maven.artifact.Artifact> projectArtifacts)
-
-
-
Constructor Detail
-
BuilderCommon
public BuilderCommon()
-
BuilderCommon
public BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, org.codehaus.plexus.logging.Logger logger)
-
-
Method Detail
-
resolveBuildPlan
public MavenExecutionPlan resolveBuildPlan(MavenSession session, MavenProject project, TaskSegment taskSegment, java.util.Set<org.apache.maven.artifact.Artifact> projectArtifacts) throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, PluginDescriptorParsingException, org.apache.maven.plugin.MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException, LifecycleExecutionException
- Throws:
PluginNotFoundExceptionPluginResolutionExceptionLifecyclePhaseNotFoundExceptionPluginDescriptorParsingExceptionorg.apache.maven.plugin.MojoNotFoundExceptionInvalidPluginDescriptorExceptionNoPluginFoundForPrefixExceptionLifecycleNotFoundExceptionPluginVersionResolutionExceptionLifecycleExecutionException
-
handleBuildError
public void handleBuildError(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, java.lang.Throwable t, long buildStartTime)
-
attachToThread
public static void attachToThread(MavenProject currentProject)
-
getKey
public static java.lang.String getKey(MavenProject project)
-
-