Sergey Gurev created SUREFIRE-1618:
--------------------------------------

             Summary: Configure module path with additional modules
                 Key: SUREFIRE-1618
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1618
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Maven Surefire Plugin
    Affects Versions: 3.0.0-M3
            Reporter: Sergey Gurev
         Attachments: additionalModules.patch

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:

 
{code:java}
<additionalModules>
    <additionalModule>net.bytebuddy</additionalModule>
    <additionalModule>net.bytebuddy.agent</additionalModule>
</additionalModules>
{code}
 

Attached patch contains implementation of "additionalModules" configuration 
property.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to