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). Jarek On Fri, Apr 2, 2010 at 2:08 PM, Jarek Gawor <[email protected]> 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 >
