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.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Perform whatever build-process behavior thisMojoimplements.
This is the main trigger for theMojoinside theMavensystem, and allows theMojoto communicate errors.
-
Method Details
-
execute
void execute()Perform whatever build-process behavior thisMojoimplements.
This is the main trigger for theMojoinside theMavensystem, and allows theMojoto communicate errors.- Throws:
MojoException- if a problem occurs
-