Brett,
I tried 2.0.10-RC11, but I'm still getting the same error. The MacOSX
1.6.0 classes.jar is showing up on the surefire test classpath. See
below (snippet) from the JUnit test report.
<property value="... <snip/> ... :
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/../Classes/classes.jar:
... <snip/> ..." name="surefire.test.class.path"/>
Brett Porter wrote:
You're correct. I found with a test project that the correct runtime JAR is
used, but the wrong JVM. However, using 2.0.10-RC11 corrects the problem,
and it was also fine under 2.0.8.
- Brett
2008/9/9 Mark Hansen <[EMAIL PROTECTED]>
Maven version: 2.0.9
Java version: 1.6.0_05
OS name: "mac os x" version: "10.5.4" arch: "x86_64" Family: "mac"
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<jvm>${jdk142.home}/bin/java</jvm>
<systemProperties>
<!-- Individual JUnit test uses these properties to
create classloaders. -->
<property>
<name>tomcat.port</name>
<value>${tomcat.port}</value>
</property>
<property>
<name>weblogic.server.port</name>
<value>${weblogic.port}</value>
</property>
<property>
<name>sl-ant.dir</name>
<value>${sl.ant.dir}</value>
</property>
<property>
<name>java6.home</name>
<value>${java6.home}</value>
</property>
<property>
<name>servicelayer.home.url</name>
<value>${servicelayer.home.url}</value>
</property>
<property>
<name>servicelayer.home</name>
<value>${servicelayer.home}</value>
</property>
<property>
<name>m2.repo</name>
<value>${m2.repo}</value>
</property>
</systemProperties>
</configuration>
</plugin>
Brett Porter wrote:
can you paste in the surefire plugin configuration that you are using
exactly?
Cheers,
Brett
2008/9/8 Mark Hansen <[EMAIL PROTECTED]>
I'm running MVN with JDK1.6.0 on MacOSX. When I set forkMode to point to
my JDK1.4.2, I'm still getting the JDK1.6.0 version of classes.jar on the
classpath. Has anybody else experienced this problem?
-- Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]