On Mon, 30 Apr 2012 12:19:25 +0100 (BST) Mark Struberg <strub...@yahoo.de> wrote:
> please look at the openjpa-maven-plugin [1]. > Check the following classes: OpenJpaEnhancerMojo.java, > OpenJpaTestEnhancerMojo.java and AbstractOpenJpaMojo.java > > Here are the important parts: > > > /** * List of all class path elements that will be searched for the * > <code>persistence-enabled</code> classes and resources expected by * > PCEnhancer. * * @parameter > default-value="${project.compileClasspathElements}" * @required * @readonly > */ protected List<String> compileClasspathElements; > > /** * List of all class path elements that will be searched for the * > <code>persistence-enabled</code> classes and resources expected by * > PCEnhancer. * * @parameter default-value="${project.testClasspathElements}" * > @required * @readonly */ protected List<String> testClasspathElements; > > > > > In the openjpa-maven-plugin I'm using the compile or test classpath to do > some bytecode magic on the classes. > > Is this what you were looking for? Yeah moreabout. I had a similar code, but I was just looking for a helper to do it, but perhaps it does not exists ? anyway thanks for your reply Mark > > > LieGrue, > strub > > [1] > https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-tools/openjpa-maven-plugin/src/main/java/org/apache/openjpa/tools/maven/ > > > > ----- Original Message ----- > > From: Tony Chemit <che...@codelutin.com> > > To: dev@maven.apache.org > > Cc: > > Sent: Monday, April 30, 2012 12:56 PM > > Subject: Re: how to obtain project class-path with all his dependencies > > > > On Mon, 30 Apr 2012 06:46:10 -0400 > > "Jason Pyeron" <jpye...@pdinc.us> wrote: > > > >> > -----Original Message----- > >> > From: Tony Chemit > >> > Sent: Monday, April 30, 2012 6:30 > >> > > >> > Hi, > >> > > >> > I'd like to know if there is an existing helper code to > >> > obtain for a given scope a fresh class-path containing all > >> > dependencies of a maven module. > >> > >> Could be misunderstanding you, but googling dependency classpath gets me > >> > > http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.htm > >> l > >> > > Hum this is a misunderstanding :) > > > > I want to obtain a class-path while doing some stuff in a new mojo. > > > > Thanks anyway. > > > >> > >> > >> -- > >> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >> - - > >> - Jason Pyeron PD Inc. http://www.pdinc.us - > >> - Principal Consultant 10 West 24th Street #100 - > >> - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - > >> - - > >> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >> This message is copyright PD Inc, subject to license 20080407P00. > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > >> For additional commands, e-mail: dev-h...@maven.apache.org > >> > > > > > > > > -- > > Tony Chemit > > -------------------- > > tél: +33 (0) 2 40 50 29 28 > > email: che...@codelutin.com > > http://www.codelutin.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > > For additional commands, e-mail: dev-h...@maven.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > -- Tony Chemit -------------------- tél: +33 (0) 2 40 50 29 28 email: che...@codelutin.com http://www.codelutin.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org