1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.execution;
20
21 import java.util.List;
22 import org.apache.maven.plugin.MojoExecution;
23 import org.apache.maven.project.MavenProject;
24
25
26
27
28
29
30
31
32
33
34
35 public class ProjectExecutionEvent {
36
37 private final MavenSession session;
38
39 private final MavenProject project;
40
41 private final List<MojoExecution> executionPlan;
42
43 private final Throwable cause;
44
45 public ProjectExecutionEvent(MavenSession session, MavenProject project) {
46 this(session, project, null, null);
47 }
48
49 public ProjectExecutionEvent(MavenSession session, MavenProject project, List<MojoExecution> executionPlan) {
50 this(session, project, executionPlan, null);
51 }
52
53 public ProjectExecutionEvent(MavenSession session, MavenProject project, Throwable cause) {
54 this(session, project, null, cause);
55 }
56
57 public ProjectExecutionEvent(
58 MavenSession session, MavenProject project, List<MojoExecution> executionPlan, Throwable cause) {
59 this.session = session;
60 this.project = project;
61 this.executionPlan = executionPlan;
62 this.cause = cause;
63 }
64
65 public MavenSession getSession() {
66 return session;
67 }
68
69 public MavenProject getProject() {
70 return project;
71 }
72
73 public List<MojoExecution> getExecutionPlan() {
74 return executionPlan;
75 }
76
77 public Throwable getCause() {
78 return cause;
79 }
80 }