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

Viewed 2329

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.

1 Answers
Related