Class DefaultLifecycleTaskSegmentCalculator
java.lang.Object
org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator
- All Implemented Interfaces:
LifecycleTaskSegmentCalculator
@Named
@Singleton
public class DefaultLifecycleTaskSegmentCalculator
extends Object
implements LifecycleTaskSegmentCalculator
Calculates the task segments in the build
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LifecyclePluginResolverprivate static final org.slf4j.Loggerprivate final MojoDescriptorCreator -
Constructor Summary
ConstructorsConstructorDescriptionDefaultLifecycleTaskSegmentCalculator(MojoDescriptorCreator mojoDescriptorCreator, LifecyclePluginResolver lifecyclePluginResolver) -
Method Summary
Modifier and TypeMethodDescriptioncalculateTaskSegments(MavenSession session) calculateTaskSegments(MavenSession session, List<String> tasks) private booleanisBeforeOrAfterPhase(String task) private booleanisGoalSpecification(String task) booleanrequiresProject(MavenSession session)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mojoDescriptorCreator
-
lifecyclePluginResolver
-
-
Constructor Details
-
DefaultLifecycleTaskSegmentCalculator
@Inject public DefaultLifecycleTaskSegmentCalculator(MojoDescriptorCreator mojoDescriptorCreator, LifecyclePluginResolver lifecyclePluginResolver)
-
-
Method Details
-
calculateTaskSegments
public List<TaskSegment> calculateTaskSegments(MavenSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException - Specified by:
calculateTaskSegmentsin interfaceLifecycleTaskSegmentCalculator- Throws:
PluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionMojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginVersionResolutionExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundException
-
calculateTaskSegments
public List<TaskSegment> calculateTaskSegments(MavenSession session, List<String> tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException -
requiresProject
- Specified by:
requiresProjectin interfaceLifecycleTaskSegmentCalculator
-
isBeforeOrAfterPhase
-
isGoalSpecification
-