[ http://jira.codehaus.org/browse/SUREFIRE-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-462. --------------------------------- Resolution: Won't Fix This is a known issue with Surefire 2.3, fixed in 2.4. I recommend the latest version, 2.4.2. > Running Surefire with TestNG fails > ---------------------------------- > > Key: SUREFIRE-462 > URL: http://jira.codehaus.org/browse/SUREFIRE-462 > Project: Maven Surefire > Issue Type: Bug > Components: TestNG support > Affects Versions: 2.3 > Environment: maven-2.0.8, surefire-testng 2.3 > Reporter: Markus Wolf > > After updating to surefire-testng 2.3 the following exception is thrown. > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > org.apache.maven.surefire.booter.SurefireExecutionException: > org.testng.xml.XmlSuite.setParallel(Z)V; nested exception is > java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V > java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:123) > at org.apache.maven.surefire.Surefire.run(Surefire.java:132) > 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:597) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira