Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.0.0-M5
-
None
-
None
-
java -version:
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)
mvn -version:
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: […]/java/11.0.8.hs-adpt
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "4.13.0-21-generic", arch: "amd64", family: "unix"
Operating system is Ubuntu Linux 18.04.java -version: openjdk version "11.0.8" 2020-07-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode) mvn -version: Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: […]/java/11.0.8.hs-adpt Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "4.13.0-21-generic", arch: "amd64", family: "unix" Operating system is Ubuntu Linux 18.04.
Description
During an upgrade of the surefire and failsafe plugins in my projects I ran into an issue with failsafe 3.0.0-M5 not seeing the classes from a Maven dependency on a module from the same project.
I have created a minimal reproduction case that contains two modules, one containing a single class and a unit-test, and one containing a single integration test:
https://github.com/LableOrg/failsafe-classnotfound-reproduction
After cloning the repo, these three commands can be used to build the project and run the tests. The Maven profiles set the version of surefire/failsafe used:
Version | Command | Result |
---|---|---|
2.22.2 | mvn clean install -Dold2 | works |
3.0.0-M4 | mvn clean install -Dold3 | works |
3.0.0-M5 | mvn clean install | fails |
The result for me is:
java.lang.NoClassDefFoundError: org/example/sample/failsafe300m5/SampleException
Is there something I am doing wrong, or is this a bug introduced in 3.0.0-M5?
Attachments
Issue Links
- duplicates
-
SUREFIRE-1809 Differences between Oracle JDK and AdoptOpenJDK caused by JPMS
- Closed