Thanks, works well!

Best regards,
Eric 

> -----Ursprüngliche Nachricht-----
> Von: Tony Chemit [mailto:[email protected]] 
> Gesendet: Mittwoch, 30. September 2009 16:43
> An: [email protected]
> Betreff: Re: Get dependencies in generate-sources phase?
> 
> Le Wed, 30 Sep 2009 16:27:54 +0200,
> "Lewis, Eric" <[email protected]> a écrit :
> 
> > Hi
> > 
> > I'm trying to access my project's classpath in a plugin I'm 
> writing, which
> > should generate JPA's persistence.xml file from JPA 
> entities found on the
> > classpath. To work, this should run during the 
> generate-sources phase, but do
> > I have access to the projects dependencies (transivite 
> dependencies, if
> > possible) at that point?
> > 
> > Best regards,
> > Eric
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> > 
> 
> You can use the annotation @requiresDependencyResolution 
> <compile|runtime|test> [0] on your mojo
> 
> Then you should be able to access the project dependencies
> 
> 
> [0] 
> http://www.sonatype.com/books/maven-book/reference/writing-plu
> gins-sect-class-annotations.html 
> -- 
> 
> Tony Chemit
> --------------------
> tél: +33 (0) 2 40 50 29 28
> email: [email protected]  
> http://www.codelutin.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to