Class DefaultLifecycleTaskSegmentCalculator
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator
-
- All Implemented Interfaces:
LifecycleTaskSegmentCalculator
@Component(role=LifecycleTaskSegmentCalculator.class) 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
- Author:
- Benjamin Bentmann, Jason van Zyl, jdcasey, Kristian Rosenvold (extracted class)
-
-
Constructor Summary
Constructors Constructor Description DefaultLifecycleTaskSegmentCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TaskSegment>
calculateTaskSegments(MavenSession session)
List<TaskSegment>
calculateTaskSegments(MavenSession session, List<String> tasks)
boolean
requiresProject(MavenSession session)
-
-
-
Method Detail
-
calculateTaskSegments
public List<TaskSegment> calculateTaskSegments(MavenSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException
- Specified by:
calculateTaskSegments
in interfaceLifecycleTaskSegmentCalculator
- Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
-
calculateTaskSegments
public List<TaskSegment> calculateTaskSegments(MavenSession session, List<String> tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException
-
requiresProject
public boolean requiresProject(MavenSession session)
- Specified by:
requiresProject
in interfaceLifecycleTaskSegmentCalculator
-
-