Le Wed, 30 Sep 2009 16:27:54 +0200, "Lewis, Eric" <eric.le...@ipi.ch> 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: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > 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-plugins-sect-class-annotations.html -- Tony Chemit -------------------- tél: +33 (0) 2 40 50 29 28 email: che...@codelutin.com http://www.codelutin.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org