Package org.apache.maven.execution
Interface ExecutionEvent
public interface ExecutionEvent
Holds data relevant for an execution event.
- Author:
- Benjamin Bentmann
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumThe possible types of execution events.
- 
Method SummaryModifier and TypeMethodDescriptionGets the exception that caused the event (if any).Gets the current mojo execution (if any).Gets the current project (if any).Gets the session from which this event originates.getType()Gets the type of the event.
- 
Method Details- 
getTypeExecutionEvent.Type getType()Gets the type of the event.- Returns:
- The type of the event, never null.
 
- 
getSessionMavenSession getSession()Gets the session from which this event originates.- Returns:
- The current session, never null.
 
- 
getProjectMavenProject getProject()Gets the current project (if any).- Returns:
- The current project or nullif not applicable.
 
- 
getMojoExecutionMojoExecution getMojoExecution()Gets the current mojo execution (if any).- Returns:
- The current mojo execution or nullif not applicable.
 
- 
getExceptionException getException()Gets the exception that caused the event (if any).- Returns:
- The exception or nullif none.
 
 
-