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 2023/02/02 16:35:00 UTC

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

    [ https://issues.apache.org/jira/browse/SUREFIRE-1917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17683485#comment-17683485 ] 

Marco Brandizi edited comment on SUREFIRE-1917 at 2/2/23 4:34 PM:
------------------------------------------------------------------

Hi all,

is there any news on this issue? Last version (3.0.0-M8) still has this problem and I'm forced to declare the listener dependency with test scope, not like a plugin dependency. Thanks in advance.


was (Author: mbrandizi):
Hi all,

is there any news on this issue? Last version (3.0.0-M8) still has this problem and I'm forced to declare the listener dependency with test scope, not like a plugin dependency.

> 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
>            Priority: Major
>         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] 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).
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)