]
Radoslav Husar updated JGRP-2291:
---------------------------------
Affects Version/s: 4.0.14
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 version 7.0 of testng
has been published and is no longer compatible with current codebase.
{noformat}
[rhusar@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@ribera jgroups]$ mvn dependency:tree
...
[INFO] +- org.testng:testng:jar:7.0.0-beta1:test
{noformat}