[ 
https://issues.apache.org/jira/browse/SUREFIRE-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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

> Classes of dependency not found since 3.0.0-M5
> ----------------------------------------------
>
>                 Key: SUREFIRE-1833
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1833
>             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:
> [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:
> {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
(v8.3.4#803005)

Reply via email to