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

Configure module path with additional modules

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-M3
    • Fix Version/s: None
    • Component/s: Maven Surefire Plugin
    • Labels:
      None

      Description

      When surefire-maven-plugin runs tests with the JPMS it constructs module path only from modules required by compiled module (reading its descriptor from file target/classes/module-info.class). Other jars will be used in class path even they are modular (with module-info.class). 

      It seems that plugin should include all modular jars to module path or there should be an option to configure module path.

      For example:

       

      <additionalModules>
          <additionalModule>net.bytebuddy</additionalModule>
          <additionalModule>net.bytebuddy.agent</additionalModule>
      </additionalModules>
      

       

      Attached patch contains implementation of "additionalModules" configuration property.

       

        Attachments

        1. additionalModules.patch
          8 kB
          Sergey Gurev

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marx.freedom Sergey Gurev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: