All Classes
-
All Classes Interface Summary Class Summary Exception Summary Class Description AbstractMojo Abstract class to provide most of the infrastructure required to implement aMojoexcept for the execute method.
The implementation should have aMojoannotation with the name of the goal:AbstractMojoExecutionException Base exception.ContextEnabled Interface to allowMojosto 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.DefaultLog DuplicateMojoDescriptorException DuplicateMojoDescriptorExceptionDuplicateParameterException DuplicateParameterExceptionExecution A set of goals to execute.InvalidParameterException InvalidPluginDescriptorException InvalidPluginDescriptorExceptionLifecycle A custom lifecycle mapping definition.LifecycleConfiguration Root element of thelifecycle.xmlfile.LifecycleMappingsXpp3Reader Class LifecycleMappingsXpp3Reader.LifecycleMappingsXpp3Reader.ContentTransformer LifecycleMappingsXpp3Writer Class LifecycleMappingsXpp3Writer.Log This interface supplies the API for providing feedback to the user from theMojo, using standardMavenchannels.
There should be no big surprises here, although you may notice that the methods acceptjava.lang.CharSequencerather thanjava.lang.String.Mojo This interface forms the contract required forMojosto interact with theMaveninfrastructure.
It features anexecute()method, which triggers the Mojo's build-process behavior, and can throw a MojoExecutionException or MojoFailureException if error conditions occur.
Also included is thesetLog(...)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.MojoDescriptor The bean containing the Mojo descriptor.
For more information about the usage tag, have a look to: https://maven.apache.org/developers/mojo-api-specification.html TODO is there a need for the delegation of MavenMojoDescriptor to this? Why not just extend ComponentDescriptor here?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 MojoNotFoundExceptionParameter Phase A phase mapping definition.PluginDescriptor PluginDescriptorBuilder Build plugin descriptor object fromplugin.xml.Requirement Describes a component requirement.SystemStreamLog Logger with "standard" output and error output stream.