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

Fails with modular project with Java 21

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.2
    • None
    • None

    Description

      In a modular Java 21 project Surefire fails to execute tests that require access to the module. It seems, Surefire tries to patch the module but somehow the module is not known by Java.

      I added a minimal example to demonstrate the problem. Just run "mvnw test" to reproduce.

      Attachments

        1. example_java21.zip
          63 kB
          Frank Ulbricht

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              future2r Frank Ulbricht
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: