You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mike Revoir <mr...@gmail.com> on 2006/04/13 17:51:18 UTC
How to get to a plugin's resources
I'm developing a Maven2 plugin which needs to know the physical path to it's
resources. In Maven1, I could use ${plugin.resources}. What is the Maven2
equivalent.
Thanks,
Mike
Re: How to get to a plugin's resources
Posted by Jesse McConnell <je...@gmail.com>.
from inside your class you can use
MyMojo.getClass().getResourceAsStream('path in the jar');
that what your looking for?
On 4/13/06, Mike Revoir <mr...@gmail.com> wrote:
>
> I'm developing a Maven2 plugin which needs to know the physical path to
> it's
> resources. In Maven1, I could use ${plugin.resources}. What is the Maven2
> equivalent.
>
> Thanks,
>
> Mike
>
>
--
jesse mcconnell