Inject MavenProject component into your mojo.

then call project.getBasedir() i think

-D

On Thu, Nov 6, 2008 at 3:15 PM, Scott Carter <[EMAIL PROTECTED]> wrote:
> I am writing a Maven2 plugin where I need to be able to determine the
> basedir for the pom that is running.  I know that in a POM you can refer to
> ${basedir} for this value, but how would you access this value at a code
> level in a plugin?  Does someone have a code example of this?
>
> Thanks in advance
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to