So there is no pure Maven support for this? > -----Original Message----- > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On > Behalf Of Anders Hammar > Sent: Donnerstag, 20. September 2012 11:46 > To: Maven Users List > Subject: Re: How to put a dependency in the classpath BEFORE jre.jar? > > I *think* you should be able to do this by specifying an endorsed > directory to be used. This would be standard Java procedure, nothing > Maven specific. > > Something like the following in the config of (for example) the > compiler plugin config: > <compilerargument>-Djava.endorsed.dirs=blabla</compilerargument> > > Should be possible to do something similar for test executions with > surefire as well. > > /Anders > > On Thu, Sep 20, 2012 at 10:21 AM, Markus Karg <k...@quipsy.de> wrote: > > I have a dependency on javaee.jar, which provides newer versions for > > classes found in JRE's jre.jar (particularly the @Resource > annotation). > > But javaee.jar is always appended to the classpath, while to be able > > to load the newer version, I need to PREFIX it before jre.jar > instead. > > How can I configure this in the POM? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org