Hi, Ben.
Either list would be fine. The versions you mention all look to be
okay, but it's obviously not working. I presume that you're getting
this exception on the first project (DNA Common). If not, please
reply with the project on which it's failing.
I do have a couple of suggestions. First things first, have you
looked at the
http://wiki.jboss.org/wiki/Maven wiki page, which talks
about how to use Maven on the JBoss projects. There's probably more
detail there than you need, but it's a starting point. That page also
links to
http://wiki.jboss.org/wiki/MavenSettings, which talks about
making sure you're pointing to the JBoss Maven 2 repository. That's
been the most important thing.
What is the Maven command you're running? I usually run "mvn clean
install" in the top-level directory (i.e., in "trunk").
Another thing to try might be to temporarily move your "~/.m2/
repository" folder and try build everything from the beginning. This
would check whether you already have incompatible libraries in your
local repository. Just remember to move your "repository" folder back
when you're finished.
I've not yet tried building with JDK 6, so I'll try to do that. Also,
I also haven't heard whether anyone has built DNA on Windows (Macs and
Linux machines, yes), so I'll try to dig up a Windows machine and give
it a whirl. From your message, I presume you have both JDK 5 and 6
installed? Do you have cygwin installed?
Best regards,
Randall
On Aug 23, 2008, at 12:27 AM, Ben Abernathy wrote:
Hi,
I'm not sure if this should go to the users list or the dev list, but
I'm having some trouble building DNA. I checked out trunk from svn and
am using maven version 2.0.9 and jdk 1.5. I'm wondering if I'm having
a JDK 1.5/1.6 version issue because I get the stack trace inserted at
the end of this email. Is there a wiki page or something describing
how to successfully build DNA?
Thanks in advance,
Ben
[INFO] Surefire report directory: D:\jboss_dna\dna\dna-common\target
\surefire-re
ports
org.apache.maven.surefire.booter.SurefireExecutionException: Bad
version number
in .class file; nested exception is
java.lang.UnsupportedClassVersionError: Bad
version number in .class file
java.lang.UnsupportedClassVersionError: Bad version number in .class
file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
Sets(AbstractDirectoryTestSuite.java:87)
at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:209)
at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:997)
_______________________________________________
dna-users mailing list
dna-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/dna-users