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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to