Search code examples
javamavenmaven-pluginmojoabbreviation

What is MOJO in Maven?


I'm reading about Maven right now and everywhere in a text I see this word (mojo). I approximately understand what it means, but I would not refuse from a good explanation. I tried to google, but found only non-maven explanations.

POJO - ok, but MOJO? Maven Old Java Object?


Solution

  • Yes, from http://maven.apache.org/plugin-developers/index.html:

    What is a Mojo? A mojo is a Maven plain Old Java Object. Each mojo is an executable goal in Maven, and a plugin is a distribution of one or more related mojos.

    In short, a mojo is a maven goal, to extend functionality not already found in maven.