maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marat Radchenko (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (SUREFIRE-59) Not compatible with TestNG 5.2: java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
Date Fri, 03 Aug 2007 06:41:13 GMT

    [ http://jira.codehaus.org/browse/SUREFIRE-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103906
] 

Marat Radchenko commented on SUREFIRE-59:
-----------------------------------------

Workaround:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-collab-SNAPSHOT/

This version works without errors.

> Not compatible with TestNG 5.2:  java.lang.NoSuchMethodError: org.testng.xml.XmlSuite.setParallel(Z)V
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-59
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-59
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: TestNG support
>         Environment:       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <version>2.2</version>
>       </plugin>      
>     <dependency>
>       <groupId>org.testng</groupId>
>       <artifactId>testng</artifactId>
>       <version>5.2</version>
>       <classifier>jdk15</classifier>
>       <scope>test</scope>
>     </dependency>
>            Reporter: Damian Golda
>             Fix For: 2.4
>
>
> I have project with dependency to testng and surefire plugin as in Environment.
> I run tests and get exception:
> org.apache.maven.surefire.booter.SurefireExecutionException: org.testng.xml.XmlSuite.setParallel(Z)V;
nested exception i
> s 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:135)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>         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:585)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Please, correct surefire to be compatible with new testng.

-- 
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

        

Mime
View raw message