1 package org.apache.maven.lifecycle;
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.model.Plugin;
24 import org.apache.maven.plugin.InvalidPluginDescriptorException;
25 import org.apache.maven.plugin.MojoExecution;
26 import org.apache.maven.plugin.MojoNotFoundException;
27 import org.apache.maven.plugin.PluginDescriptorParsingException;
28 import org.apache.maven.plugin.PluginManagerException;
29 import org.apache.maven.plugin.PluginNotFoundException;
30 import org.apache.maven.plugin.PluginResolutionException;
31 import org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException;
32 import org.apache.maven.plugin.version.PluginVersionResolutionException;
33 import org.apache.maven.project.MavenProject;
34
35 import java.util.List;
36 import java.util.Set;
37
38
39
40
41
42
43
44 @SuppressWarnings( { "UnusedDeclaration" } )
45 public interface LifecycleExecutor
46 {
47
48
49 @Deprecated
50 String ROLE = LifecycleExecutor.class.getName();
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 Set<Plugin> getPluginsBoundByDefaultToAllLifecycles( String packaging );
67
68 MavenExecutionPlan calculateExecutionPlan( MavenSession session, String... tasks )
69 throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
70 MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
71 PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException,
72 PluginVersionResolutionException;
73
74 MavenExecutionPlan calculateExecutionPlan( MavenSession session, boolean setup, String... tasks )
75 throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException,
76 MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
77 PluginManagerException, LifecyclePhaseNotFoundException, LifecycleNotFoundException,
78 PluginVersionResolutionException;
79
80 void execute( MavenSession session );
81
82
83 void calculateForkedExecutions( MojoExecution mojoExecution, MavenSession session )
84 throws MojoNotFoundException, PluginNotFoundException, PluginResolutionException,
85 PluginDescriptorParsingException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException,
86 LifecyclePhaseNotFoundException, LifecycleNotFoundException, PluginVersionResolutionException;
87
88
89
90 List<MavenProject> executeForkedExecutions( MojoExecution mojoExecution, MavenSession session )
91 throws LifecycleExecutionException;
92
93
94 }