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

Add modulepath support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.21.0
    • None
    • None

    Description

      With the Jigsaw project Java9 is extended with a modulepath. This means that surefire should be executed in a different way.
      When working with a modulepath, the Classpath in the MANIFEST of the executable jar will be ignored, you need need to add everything on commandline.
      Just like javadoc, the java executable has an @<file> option, where you can add arguments per line. So this is the new preferred way to build the module-path.
      IIUC for surefire it is important to add --patch-module target/test-classes (was: -Xpatch) which makes it possible to use the same packages as target/classes.

      Attachments

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              rfscholte Robert Scholte
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: