Package org.apache.maven.api
Interface Event
- All Known Implementing Classes:
- DefaultEvent
Event sent by maven during various phases of the build process.
 Such events can be listened to using 
Listeners objects
 registered in the Session.- Since:
- 4.0.0
- 
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- 
getTypeGets the type of the event.- Returns:
- the type of the event, never null
 
- 
getSessionGets the session from which this event originates.- Returns:
- the current session, never null
 
- 
getProjectGets the current project (if any).- Returns:
- the current project or empty()if not applicable
 
- 
getMojoExecutionGets the current mojo execution (if any).- Returns:
- the current mojo execution or empty()if not applicable
 
- 
getExceptionGets the exception that caused the event (if any).- Returns:
- the exception or empty()if none
 
 
-