Hi Everyone, I am using Java6 and have some junit 3.8.1 test cases. When I try to build I get following?
I am using the 2.2 version of surefire? Is sun fire not supporting in Java6 yet? If so is there a work around for this? <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.2</version> </plugin> [INFO] Surefire report directory: C:\apparch\com.covance.infrastructure.core\target\surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: com/covance/system/core/util/CovanceServiceLoaderTestCase (Unsupported major.minor version 50.0); nested exception is java.lang.UnsupportedClassVersionError: com/cov/system/core/util/CovServiceLoaderTestCase (Unsupported major.minor version 50.0) java.lang.UnsupportedClassVersionError: com/cov/system/core/util/CovServiceLoaderTestCase (Unsupported major.minor version 50.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClass Loader.java:100) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(Ab stractDirectoryTestSuite.java:84) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:1 47) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB ooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747 ) Pratik Parikh ----------------------------------------------------- Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited. If you have received this e-mail transmission in error, please reply to the sender, so that we can arrange for proper delivery, and then please delete the message from your inbox. Thank you.