1 package org.apache.maven.lifecycle.internal;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.execution.MavenSession;
23 import org.apache.maven.lifecycle.LifecycleNotFoundException;
24 import org.apache.maven.lifecycle.LifecyclePhaseNotFoundException;
25 import org.apache.maven.plugin.InvalidPluginDescriptorException;
26 import org.apache.maven.plugin.MojoNotFoundException;
27 import org.apache.maven.plugin.PluginDescriptorParsingException;
28 import org.apache.maven.plugin.PluginNotFoundException;
29 import org.apache.maven.plugin.PluginResolutionException;
30 import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException;
31 import org.apache.maven.plugin.version.PluginVersionResolutionException;
32
33 import java.util.List;
34
35
36
37
38
39
40
41
42
43
44
45
46
47 public interface LifecycleTaskSegmentCalculator
48 {
49 List<TaskSegment> calculateTaskSegments( MavenSession session )
50 throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
51 MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
52 PluginVersionResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException;
53
54 List<TaskSegment> calculateTaskSegments( MavenSession session, List<String> tasks )
55 throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
56 MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
57 PluginVersionResolutionException;
58
59 boolean requiresProject( MavenSession session );
60
61 }