| Interface | Description | 
|---|---|
| ContextEnabled | Interface to allow  Mojosto communicate with each othersMojos, other than
 project's source root and project's attachment.The plugin manager would pull the context out of the plugin container context, and populate it into the Mojo. | 
| Mojo | This interface forms the contract required for  Mojosto interact with theMaveninfrastructure.It features an execute()method, which triggers the Mojo's build-process behavior, and can throw
 a MojoExecutionException or MojoFailureException if error conditions occur.Also included is the setLog(...)method, which simply allows Maven to inject a logging mechanism which
 will allow the Mojo to communicate to the outside world through standard Maven channels. | 
| Class | Description | 
|---|---|
| AbstractMojo | Abstract class to provide most of the infrastructure required to implement a  Mojoexcept for
 the execute method.The implementation should have a Mojoannotation with the name of the goal: | 
| Exception | Description | 
|---|---|
| AbstractMojoExecutionException | Base exception. | 
| MojoExecutionException | An exception occurring during the execution of a plugin. Throwing this exception causes a "BUILD ERROR" message to be displayed. | 
| MojoFailureException | An exception occurring during the execution of a plugin (such as a compilation failure). Throwing this exception causes a "BUILD FAILURE" message to be displayed. | 
| MojoNotFoundException | MojoNotFoundException | 
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.