Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
3.0.0-M5
-
None
-
None
-
18:41:33 [root@MAC10143-ROTH tmp]# mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3/libexec
Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
18:48:39 [root@MAC10143-ROTH tmp]#18:41:33 [ root@MAC10143-ROTH tmp]# mvn -v Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/Cellar/maven/3.6.3/libexec Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" 18:48:39 [ root@MAC10143-ROTH tmp]#
Description
I've been using a Junit 4.x listener for years, to wrap every test method run with nice header/trailer decorations.
I've been doing this by adding the dependency to the listener class in the surefire's <plugin> section and then using the property listener.
I've just discovered that this doesn't work anymore with 3.0.0-M5 version: it says that the listener's ClassNotFoundException for the listener class.
You can verify this with the attached simple project.
Using it, I've tried several older versions until I found that the latest working is 2.19.1, the 2.20.1 raises a NullPointerEx and I didn't get exactly where (see the .out in the attachment).