geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarek Gawor <>
Subject Re: Maven compiler & endorsed libraries
Date Tue, 06 Apr 2010 21:23:39 GMT
I came up with one solution (committed in revision 931319).

In this solution I created a maven-property-plugin which executes in
the "validate" phase and sets "bootClassPath" system property. The
value of "bootClassPath" property is set to
-Xbootclasspath/p:<path><pathSeparator><path>... string where each
<path> is the jar file to prepend to boot classpath. The
"bootClassPath" property is then used in maven-compiler-plugin and
maven-surefire-plugin and passed as a java/javac argument.

This seems to work for me but I'm wondering if it works for other
people on different OSes and JVMs (especially on Windows and on
non-Sun JVMs).


On Fri, Apr 2, 2010 at 2:08 PM, Jarek Gawor <> wrote:
> Hi,
> We need to find a way to make the compiler in Maven to load certain
> libraries as endorsed libraries. I know this has been discussed before
> but do we have some specific solutions for this problem? We will need
> to deal with this fairly soon now - for example to implement the
> @Resource.lookup support.
> Jarek

View raw message