Package org.apache.maven.plugin
Interface Mojo
- All Known Implementing Classes:
- AbstractMojo
This interface forms the contract required for 
It features an
Also included is the
Mojos to interact with the Maven
 infrastructure.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.- 
Field SummaryFields
- 
Method Summary
- 
Field Details- 
ROLEThe componentrolehint for Plexus container
 
- 
- 
Method Details- 
executePerform whatever build-process behavior thisMojoimplements.
 This is the main trigger for theMojoinside theMavensystem, and allows theMojoto communicate errors.- Throws:
- MojoExecutionException- if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
- MojoFailureException- if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.
 
- 
setLogDeprecated.Use SLF4J directlyInject a standardMavenlogging mechanism to allow thisMojoto communicate events and feedback to the user.- Parameters:
- log- a new logger
 
- 
getLogDeprecated.Use SLF4J directlyFurnish access to the standard Maven logging mechanism which is managed in this base class.- Returns:
- a log4j-like logger object which allows plugins to create messages at levels of "debug","info","warn", and"error".
 
 
-