use this.getClass().getClassLoader().getResourceAsStream( resourceLocation ); to copy your resource to where ever you want.
-D On 2/20/06, Scott Ryan <[EMAIL PROTECTED]> wrote: > > In Maven 1 there was a way to store resources with your plugin that you > could easily access inside the plugin to copy out the resources etc. I > used > this for delivering templates etc. I accessed the directory via the > plugin-resources parameter and it worked very well. Is there such a > parameter available in Maven 2. I have a need to deliver some based java > classes with my plugin and the archetype structure does not allow me the > flexibility to deliver the files I need. I am looking for a way to > package > some files within my plugin and access those files from within the plugin. > > The alternative would be to understand how to make the archetype structure > support complex java trees. > > Scott Ryan > Chief Technology Officer > Soaring Eagle L.L.C. > [EMAIL PROTECTED] > www.soaringeagleco.com > (303) 263-3044 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >