title: How to get the current MavenSession or MavenExecutionRequest from a Plexus Component
body: <p>I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like <code>localRepository</code> and project from the Mojo (and test cases).</p>
  
  <p>I was wondering if there is a way to get the <code>MavenSession</code> or <code>MavenExecutionRequest</code> 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.</p>
  
  <p>I'm using Maven 2 in this instance.</p>