Unfortunately, I don't know how to solve this. I generally try to keep jre/lib/ext clean. The fact that a vendor *requires* you to put it's JARs there seems strange to me. The only reason I can think of is they're tired of telling customers how to modify their classpath - or they need their JARs to load first (which should be able to be controlled by the CLASSPATH as well).
You might try asking surefire-specific questions on the Maven user mailing list. Matt On 7/23/07, Developer Abe <[EMAIL PROTECTED]> wrote:
I am working with a set of jar files which have to be installed in jre/lib/ext One of the vendors jar files is a version of log4j. I was wondering how to configure the <useSystemClassLoader>true</useSystemClassLoader> attribute for the surefire plugin in appfuse. I tried adding the vendor's log4j jar to the maven repository and dependencies section of my pom.xml because I was originally getting a bunch of NoClassDefFoundErrors because Maven could not find the classes in the jar files in jre/lib/ext. I have a feeling it has to do with surefire's IsolatedClassLoader. When I added the dependencies manually I am getting errors related to not finding properties files and not being able to assign one class loaded by the SystemExt loader to surefire's Isolated class loader. I am hoping to get surefire to use the system class loader and remove the dependencies in my pom.xml. Does anyone know how to set the <useSystemClassLoader>true</useSystemClassLoader> attribute in appfuse. Regards, Abe
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]