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

Configure module path with additional modules

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M3
    • None
    • Maven Surefire Plugin
    • 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

            Unassigned Unassigned
            marx.freedom Sergey Gurev
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: