@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.Modifier and Type | Field and Description |
---|---|
private LifecyclePluginResolver |
lifecyclePluginResolver |
private MojoDescriptorCreator |
mojoDescriptorCreator |
Constructor and Description |
---|
DefaultLifecycleTaskSegmentCalculator() |
Modifier and Type | Method and Description |
---|---|
java.util.List<TaskSegment> |
calculateTaskSegments(MavenSession session) |
java.util.List<TaskSegment> |
calculateTaskSegments(MavenSession session,
java.util.List<java.lang.String> tasks) |
private boolean |
isGoalSpecification(java.lang.String task) |
boolean |
requiresProject(MavenSession session) |
@Requirement private MojoDescriptorCreator mojoDescriptorCreator
@Requirement private LifecyclePluginResolver lifecyclePluginResolver
public DefaultLifecycleTaskSegmentCalculator()
public java.util.List<TaskSegment> calculateTaskSegments(MavenSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException
calculateTaskSegments
in interface LifecycleTaskSegmentCalculator
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
public java.util.List<TaskSegment> calculateTaskSegments(MavenSession session, java.util.List<java.lang.String> tasks) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException
public boolean requiresProject(MavenSession session)
requiresProject
in interface LifecycleTaskSegmentCalculator
private boolean isGoalSpecification(java.lang.String task)