maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1403) [Jigsaw] [Java 9] add "--add-modules ALL-SYSTEM" to forked CLI argument
Date Mon, 07 Aug 2017 10:52:00 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116421#comment-16116421
] 

Tibor Digana commented on SUREFIRE-1403:
----------------------------------------

For the given JDK via Toolchain or {{jvm}} argument of Surefire plugin configuration, I will
discover JDK version from JDK/release which is properties file and has entry e.g. {{JAVA_VERSION="9"}}.

> [Jigsaw] [Java 9] add "--add-modules ALL-SYSTEM" to forked CLI argument
> -----------------------------------------------------------------------
>
>                 Key: SUREFIRE-1403
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1403
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>             Fix For: 2.20.1
>
>
> Calling *findClass( cls, "java.se.ee")* in *IsolatedClassLoader* does not help and does
not do anything because the module is ignored in Java 9.
> In-plugin provider does not have any problem to load classes from entire JDK.
> Forked JVM would work only after added
> {{<argLine>--add-modules ALL-SYSTEM</argLine>}}
> The fix would be to add "--add-modules ALL-SYSTEM" if {{--add-modules}} is not specified
by user at Java 9+.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message