maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (Jira)" <>
Subject [jira] [Closed] (SUREFIRE-1833) Classes of dependency not found since 3.0.0-M5
Date Mon, 17 Aug 2020 11:29:00 GMT


Tibor Digana closed SUREFIRE-1833.
      Assignee: Tibor Digana
    Resolution: Duplicate

> Classes of dependency not found since 3.0.0-M5
> ----------------------------------------------
>                 Key: SUREFIRE-1833
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 3.0.0-M5
>         Environment: 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.
>            Reporter: Jeroen Hoek
>            Assignee: Tibor Digana
>            Priority: Major
> 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:
> []
> 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:
> {code:java}
> java.lang.NoClassDefFoundError: org/example/sample/failsafe300m5/SampleException
> {code}
> Is there something I am doing wrong, or is this a bug introduced in {{3.0.0-M5}}?

This message was sent by Atlassian Jira

View raw message