Hi!

I currently face a very similar problem: I'd like to check for a resource 
target/classes/META-INF/persistence.xml from my plugin via the plugins 
classloader (need the JDBC config from there).

I'm currently messing around with Classworlds, but haven't succeed so far.

It would be a great if you can point us to a plugin which has implemented such 
a mechanism already. I'd hate to call java via the CommandLine for this :(


txs and LieGrue,
strub

--- Brett Porter <[EMAIL PROTECTED]> schrieb am Mo, 13.10.2008:

> Von: Brett Porter <[EMAIL PROTECTED]>
> Betreff: Re: Accessing an artifacts classpath from a mojo?
> An: "Maven Users List" <[email protected]>
> Datum: Montag, 13. Oktober 2008, 12:45
> How do you need to use it? It can be quite simple to create
> a  
> classloader for this, but it depends on how it'll be
> used.
> 
> Cheers,
> Brett
> 
> On 13/10/2008, at 9:40 PM, Mark Derricutt wrote:
> 
> > Hi all,
> >
> > I have a maven plugin I'm working on and I want to
> include the  
> > classpath
> > (main, test, others...) of the artifact calling the
> plugin - am I  
> > going to
> > have to spawn/fork a new java process and include them
> on the  
> > classpath
> > somehow, or is their some mojo-magic that takes care
> of this?
> >
> > Mark





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

Reply via email to