harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: Issue / workaround - running Maven2 using Apache Harmony
Date Wed, 16 Apr 2008 08:03:50 GMT
It would be good to capture this in a JIRA for tracking.  I don't know 
what Surefire does, so if there are any Maven types lurking it would be 
good to get their help with this too (otherwise I'll go over there and ask).

To set this mail in context:
There is a discussion underway on the ASF members mailing list about 
running more of Apache's applications on Harmony, where I have 
encouraged people to try M5 and report successes|bugs to this list.
I'm sure such reports will get people's attention as it is good to see 
Harmony being put to good use.

Thanks Dims for trying maven2 and finding this!


Davanum Srinivas wrote:
> FYI, just set JAVA_HOME as usual and run ?mvn clean install?. But 
> there?s a gotcha. You may see the following issue when
> surefire tries to run the tests.
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 58 source files to 
> /home/dims/XmlSchema/target/test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: 
> /home/dims/XmlSchema/target/surefire-reports
> Uncaught exception in main:
> java.lang.ClassNotFoundException: 
> org.apache.maven.surefire.booter.SurefireBooter
> at java.net.URLClassLoader.findClass(URLClassLoader.java:894)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:593)
> at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:981)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> at org.apache.harmony.vm.JarRunner.main(JarRunner.java:72)
> [INFO] ????????????????????????
> [INFO] ????????????????????????
> If you do, then just set your MAVEN_OPTS as follows and run ?mvn clean 
> install? again.
> set MAVEN_OPTS=-Dsurefire.useSystemClassLoader=false
> More information about this switch can be found at:
> http://docs.codehaus.org/display/MAVENUSER/Classloading+and+Forking+under+Maven+Surefire

> Not sure if this is a harmony bug. Anyone wanna look?
> thanks,
> dims

View raw message