Package org.apache.maven.api.plugin
Interface Mojo
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface forms the contract required for
It features an
Mojos
to interact with the Maven
infrastructure.It features an
execute()
method, which triggers the Mojo's build-process behavior, and can throw
a MojoException if error conditions occur.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Perform whatever build-process behavior thisMojo
implements.
This is the main trigger for theMojo
inside theMaven
system, and allows theMojo
to communicate errors.
-
Method Details
-
execute
void execute()Perform whatever build-process behavior thisMojo
implements.
This is the main trigger for theMojo
inside theMaven
system, and allows theMojo
to communicate errors.- Throws:
MojoException
- if a problem occurs
-