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

Fails with modular project with Java 21

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment