[jboss-jira] [JBoss JIRA] (JGRP-2291) Tests do not compile with maven (org.testng:testng:jar:7.0.0-beta1 is no longer compatible)

Radoslav Husar (JIRA) issues at jboss.org
Mon Sep 17 16:18:00 EDT 2018


    [ https://issues.jboss.org/browse/JGRP-2291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13634546#comment-13634546 ] 

Radoslav Husar commented on JGRP-2291:
--------------------------------------

This works with ant because the ivy range is treated differently (6.9.+) / or the range does not include 7 for some reason.

> Tests do not compile with maven (org.testng:testng:jar:7.0.0-beta1 is no longer compatible)
> -------------------------------------------------------------------------------------------
>
>                 Key: JGRP-2291
>                 URL: https://issues.jboss.org/browse/JGRP-2291
>             Project: JGroups
>          Issue Type: Task
>    Affects Versions: 4.0.14
>            Reporter: Radoslav Husar
>            Assignee: Radoslav Husar
>             Fix For: 4.0.15
>
>
> Tests no longer compile. This is because of heavy use of version ranges in dependencies (which is strongly adviced against due to issues like this) – since a beta version 7.0.x of testng has been published and is no longer compatible with current codebase.
> {noformat}
> [rhusar at ribera jgroups]$ mvn clean install
> [INFO] Scanning for projects...
> [INFO] Inspecting build with total of 1 modules...
> [INFO] Installing Nexus Staging features:
> [INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
> [WARNING] The project org.jgroups:jgroups:bundle:4.0.15-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
> [INFO]
> [INFO] ------------------------< org.jgroups:jgroups >-------------------------
> [INFO] Building JGroups 4.0.15-SNAPSHOT
> [INFO] -------------------------------[ bundle ]-------------------------------
> [WARNING] The POM for com.beust:jcommander:jar:1.66 is missing, no dependency information available
> ...
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jgroups ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/rhusar/git/jgroups/src/test/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ jgroups ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 216 source files to /Users/rhusar/git/jgroups/target/test-classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/ChannelTestBase.java:[30,37] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/FlushTest.java:[26,66] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/PropertyConvertersTest.java:[19,44] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/blocks/LazyRemovalCacheTest.java:[15,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/FixedSizeBitSetTest.java:[14,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergerTest.java:[15,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/BlockingInputStreamTest.java:[16,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/HeadersTest.java:[16,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest6.java:[24,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SuppressCacheTest.java:[15,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest5.java:[27,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/TCPGOSSIP_Test.java:[30,102] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SeqnoTest.java:[13,44] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest4.java:[25,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/ResponseCollectorTest.java:[17,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/protocols/AUTHTest.java:[19,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/ExpiryCacheTest.java:[12,43] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SeqnoComparatorTest.java:[12,44] cannot find symbol
>   symbol:   method sequential()
>   location: @interface org.testng.annotations.Test
> [INFO] 18 errors
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 11.005 s
> [INFO] Finished at: 2018-09-17T21:50:18+02:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:testCompile (default-testCompile) on project jgroups: Compilation failure: Compilation failure:
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/ChannelTestBase.java:[30,37] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/FlushTest.java:[26,66] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/PropertyConvertersTest.java:[19,44] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/blocks/LazyRemovalCacheTest.java:[15,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/FixedSizeBitSetTest.java:[14,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergerTest.java:[15,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/BlockingInputStreamTest.java:[16,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/HeadersTest.java:[16,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest6.java:[24,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SuppressCacheTest.java:[15,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest5.java:[27,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit/org/jgroups/tests/TCPGOSSIP_Test.java:[30,102] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SeqnoTest.java:[13,44] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/MergeTest4.java:[25,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/ResponseCollectorTest.java:[17,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/protocols/AUTHTest.java:[19,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/ExpiryCacheTest.java:[12,43] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] /Users/rhusar/git/jgroups/tests/junit-functional/org/jgroups/tests/SeqnoComparatorTest.java:[12,44] cannot find symbol
> [ERROR]   symbol:   method sequential()
> [ERROR]   location: @interface org.testng.annotations.Test
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> {noformat}
> since the dependencies resolve to
> {noformat}
> [rhusar at ribera jgroups]$ mvn dependency:tree
> ...
> [INFO] +- org.testng:testng:jar:7.0.0-beta1:test
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list