SAGARFIVE

Tutorials

6.1 MOJO

  • MOJO stands for Maven plain Old Java Object.
  • Every MOJO is an executable goal in Maven. It is like an annotated Java class. It specifies metadata about a goal like- goal name, phase of lifecycle for goal and parameters required by goal.
  • A Maven plugin can contain multiple MOJOs.
  • Mojo is single unit of task in maven.
  •  Mojo is a Java class that represents a goal that our plugin will execute. A plugin contains one or more mojos.