Class BuilderCommon
java.lang.Object
org.apache.maven.lifecycle.internal.builder.BuilderCommon
Common code that is shared by the LifecycleModuleBuilder and the LifeCycleWeaveBuilder
- Since:
- 3.0 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutionEventCatapult
private final LifecycleDebugLogger
private final LifecycleExecutionPlanCalculator
private final org.slf4j.Logger
-
Constructor Summary
ConstructorsConstructorDescriptionBuilderCommon
(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, ExecutionEventCatapult eventCatapult) BuilderCommon
(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, ExecutionEventCatapult eventCatapult, org.slf4j.Logger logger) Ctor needed for UT. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachToThread
(MavenProject currentProject) static String
getKey
(MavenProject project) void
handleBuildError
(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, Throwable t, Instant buildStartTime) resolveBuildPlan
(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts)
-
Field Details
-
logger
private final org.slf4j.Logger logger -
lifecycleDebugLogger
-
lifeCycleExecutionPlanCalculator
-
eventCatapult
-
-
Constructor Details
-
BuilderCommon
@Inject public BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, ExecutionEventCatapult eventCatapult) -
BuilderCommon
BuilderCommon(LifecycleDebugLogger lifecycleDebugLogger, LifecycleExecutionPlanCalculator lifeCycleExecutionPlanCalculator, ExecutionEventCatapult eventCatapult, org.slf4j.Logger logger) Ctor needed for UT.
-
-
Method Details
-
resolveBuildPlan
public MavenExecutionPlan resolveBuildPlan(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts) throws PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException, NoPluginFoundForPrefixException, LifecycleNotFoundException, PluginVersionResolutionException, LifecycleExecutionException -
handleBuildError
public void handleBuildError(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, Throwable t, Instant buildStartTime) -
attachToThread
-
getKey
-