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

NoClassDefFoundError for JPMS modules with "require static"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.22.0
    • None
    • Maven Surefire Plugin
    • None

    Description

      When a Maven module has a module-info.java that contains a requires static, Surefire throws NoClassDefFoundError when running the tests for that Maven module.

      If the dependency is declared only as required (no static), then the tests run fine.

      Attached a reproducible project.

      Attachments

        1. maven-jpms.tgz
          2 kB
          Simone Bordet

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              sbordet Simone Bordet
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: