How to get the current MavenSession or MavenExecutionRequest from a Plexus Component

I don’t believe there is, nor would I think it’s a good idea. From my understanding, what you’re aiming to achieve is have a commons-like component, that will be used for several mojos. This requires the current Maven session to be passed in & used to subsequently pass back a value. The way Maven works … Read more

What is MOJO in Maven?

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.