Hi Michal, Thanks for the suggestion. Several points:
- I would prefer to use the Mojo API for now as it allows me to learn how to use it, to flesh it out if required - I don't have much hope that the Clover plugin will be able to be reused in another context... It's too bound to the execution lifecycle I think. - If I use plexus then am I not simply replacing the maven dep by the plexus dep (actually I'll be adding it as the maven dep will always be needed I think). ATM, someone could reuse the Mojos that I have written. They would simply need to provide implementations for the Maven interfaces. But again I don't think it could be reused easily. - What about the other Mojos they're all bound to Maven too? I'm probably missing something though... :-) Thanks -Vincent > -----Original Message----- > From: Michal Maczka [mailto:[EMAIL PROTECTED] > Sent: mardi 14 juin 2005 08:12 > To: Maven Developers List > Subject: Re: [m2] How to add an artifact dynamically to the CP? > > Vincent Massol wrote: > > >Hi, > > > >I need to add the Clover JAR defined in the Clover plugin to the compile > CP > >of the project using the Clover plugin. This is because the Clover > >instruments the source code and thus when compiling the instrumenting > >sources the Clover JAR needs to be in the CP. > > > > > > > > > > Vincent, > > Maybe completly stupid and wrong proposition/idea - but wouldn't it be > simpler for you to reuse some plexus components directly in your clover > plugin > rather then to relay on maven lifecycle execution with some strange > tricks? > > As I understand mojo api - the main reason why it looks like it looks > was to make mojo standalone and reusable outside maven. > Doesn't it mean that clover mojo should also be aiming to be possibly > usable without maven? > > In you case you can probably reuse plexus compiler and test runner > components and bent them to your needs.. > > greets > > Michal ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]