Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1833

Classes of dependency not found since 3.0.0-M5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0-M5
    • None
    • Maven Failsafe Plugin
    • None

    Description

      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:

      java.lang.NoClassDefFoundError: org/example/sample/failsafe300m5/SampleException
      

      Is there something I am doing wrong, or is this a bug introduced in 3.0.0-M5?

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              Jeroen Hoek Jeroen Hoek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: