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 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 Type
    Method
    Description
    void
    Perform whatever build-process behavior this Mojo implements.
    This is the main trigger for the Mojo inside the Maven system, and allows the Mojo to communicate errors.
  • Method Details

    • execute

      void execute()
      Perform whatever build-process behavior this Mojo implements.
      This is the main trigger for the Mojo inside the Maven system, and allows the Mojo to communicate errors.
      Throws:
      MojoException - if a problem occurs