How to get the current MavenSession or MavenExecutionRequest from a Plexus Component
I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like localRepository and project from the Mojo (and test cases). I was wondering if there is a way to get the MavenSession or MavenExecutionRequest from within the component without having to pass them as parameters from a Mojo. I know my component will be running from a Maven Mojo. I'm using Maven 2 in this instance. 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