[ 
https://issues.apache.org/jira/browse/WW-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317904#comment-15317904
 ] 

ASF GitHub Bot commented on WW-4638:
------------------------------------

Github user lukaszlenart commented on the issue:

    https://github.com/apache/struts/pull/98
  
    I've got such an error when building locally:
    `INFO] Struts 2 TestNG Plugin ............................. FAILURE [  
7.039 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:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
    ```


> TestNG 6.9.10 dependency error
> ------------------------------
>
>                 Key: WW-4638
>                 URL: https://issues.apache.org/jira/browse/WW-4638
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - TestNG
>    Affects Versions: 2.3.28, 2.5
>            Reporter: Jon Juaristi
>             Fix For: 2.3.29, 2.5.1
>
>
> When trying to add the TestNG plugin as a dependency with TestNG 6.9.10 in 
> Gradle, the test compilation fails.
> The output for these dependencies
> {code}
> testCompile 'org.assertj:assertj-core:2.4.1'
> testCompile 'org.testng:testng:6.9.10'
> testCompile 'org.apache.struts:struts2-testng-plugin:2.3.28.1'
> //or testCompile 'org.apache.struts:struts2-testng-plugin:2.5'
> {code}
> Is the next one
> {code}
> FAILURE: Build failed with an exception.
> * What went wrong:
> Could not resolve all dependencies for configuration ':testCompileClasspath'.
> > Could not find testng-jdk15.jar (org.testng:testng:6.9.10).
>   Searched in the following locations:
>       
> https://repo1.maven.org/maven2/org/testng/testng/6.9.10/testng-6.9.10-jdk15.jar
> {code}
> The same happens for JCenter.
> It searches a file that doesn't exist, from what I've read the last version 
> with jdk15.jar is something like 4.4.7, if I'm not mistaken.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to