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 org.apache.maven.plugin.Mojo;
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
36 public class MojoExecutionEvent {
37 private final MavenSession session;
38
39 private final MavenProject project;
40
41 private final MojoExecution mojoExecution;
42
43 private final Mojo mojo;
44
45 private final Throwable cause;
46
47 public MojoExecutionEvent(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo) {
48 this(session, project, mojoExecution, mojo, null);
49 }
50
51 public MojoExecutionEvent(
52 MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo, Throwable cause) {
53 this.session = session;
54 this.project = project;
55 this.mojoExecution = mojoExecution;
56 this.mojo = mojo;
57 this.cause = cause;
58 }
59
60 public MavenSession getSession() {
61 return session;
62 }
63
64 public MavenProject getProject() {
65 return project;
66 }
67
68 public MojoExecution getExecution() {
69 return mojoExecution;
70 }
71
72 public Mojo getMojo() {
73 return mojo;
74 }
75
76 public Throwable getCause() {
77 return cause;
78 }
79 }