Class DefaultLifecycleTaskSegmentCalculator
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator
-
- All Implemented Interfaces:
LifecycleTaskSegmentCalculator
@Component(role=LifecycleTaskSegmentCalculator.class) public class DefaultLifecycleTaskSegmentCalculator extends java.lang.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
Fields Modifier and Type Field Description private LifecyclePluginResolverlifecyclePluginResolverprivate MojoDescriptorCreatormojoDescriptorCreator
-
Constructor Summary
Constructors Constructor Description DefaultLifecycleTaskSegmentCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TaskSegment>calculateTaskSegments(MavenSession session)java.util.List<TaskSegment>calculateTaskSegments(MavenSession session, java.util.List<java.lang.String> tasks)private booleanisGoalSpecification(java.lang.String task)booleanrequiresProject(MavenSession session)
-
-
-
Field Detail
-
mojoDescriptorCreator
@Requirement private MojoDescriptorCreator mojoDescriptorCreator
-
lifecyclePluginResolver
@Requirement private LifecyclePluginResolver lifecyclePluginResolver
-
-
Method Detail
-
calculateTaskSegments
public java.util.List<TaskSegment> calculateTaskSegments(MavenSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException
- Specified by:
calculateTaskSegmentsin interfaceLifecycleTaskSegmentCalculator- Throws:
PluginNotFoundExceptionPluginResolutionExceptionPluginDescriptorParsingExceptionMojoNotFoundExceptionNoPluginFoundForPrefixExceptionInvalidPluginDescriptorExceptionPluginVersionResolutionExceptionLifecyclePhaseNotFoundExceptionLifecycleNotFoundException
-
calculateTaskSegments
public java.util.List<TaskSegment> calculateTaskSegments(MavenSession session, java.util.List<java.lang.String> tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException
-
requiresProject
public boolean requiresProject(MavenSession session)
- Specified by:
requiresProjectin interfaceLifecycleTaskSegmentCalculator
-
isGoalSpecification
private boolean isGoalSpecification(java.lang.String task)
-
-