You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marco Brandizi (Jira)" <ji...@apache.org> on 2021/06/04 17:55:00 UTC

[jira] [Created] (SUREFIRE-1917) Surefire plug-in level dependency doesn't work

Marco Brandizi created SUREFIRE-1917:
----------------------------------------

             Summary: Surefire plug-in level dependency doesn't work
                 Key: SUREFIRE-1917
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1917
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.x support
    Affects Versions: 3.0.0-M5
         Environment: 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]#
            Reporter: Marco Brandizi
         Attachments: junit-deptest.zip

I've been using a Junit 4.x [listener|https://github.com/marco-brandizi/jutils/blob/master/jutils/src/main/java/uk/ac/ebi/utils/test/junit/TestOutputDecorator.java] that wraps every test method with nice header/trailer decorations.

 I've been doing this by adding the dependency to the 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).

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)