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
23 import org.apache.maven.plugin.MojoExecution;
24 import org.apache.maven.project.MavenProject;
25
26
27
28
29
30
31
32
33
34
35
36 public class ProjectExecutionEvent {
37
38 private final MavenSession session;
39
40 private final MavenProject project;
41
42 private final List<MojoExecution> executionPlan;
43
44 private final Throwable cause;
45
46 public ProjectExecutionEvent(MavenSession session, MavenProject project) {
47 this(session, project, null, null);
48 }
49
50 public ProjectExecutionEvent(MavenSession session, MavenProject project, List<MojoExecution> executionPlan) {
51 this(session, project, executionPlan, null);
52 }
53
54 public ProjectExecutionEvent(MavenSession session, MavenProject project, Throwable cause) {
55 this(session, project, null, cause);
56 }
57
58 public ProjectExecutionEvent(
59 MavenSession session, MavenProject project, List<MojoExecution> executionPlan, Throwable cause) {
60 this.session = session;
61 this.project = project;
62 this.executionPlan = executionPlan;
63 this.cause = cause;
64 }
65
66 public MavenSession getSession() {
67 return session;
68 }
69
70 public MavenProject getProject() {
71 return project;
72 }
73
74 public List<MojoExecution> getExecutionPlan() {
75 return executionPlan;
76 }
77
78 public Throwable getCause() {
79 return cause;
80 }
81 }