karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4900) karaf java9 build is broken since 9-ea+148
Date Tue, 20 Dec 2016 08:27:58 GMT

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

Freeman Fang commented on KARAF-4900:
-------------------------------------

The --add-opens new jvm flag mentioned in [1] can do the trick.

We can update maven-surefire-plugin for java9 profile to use this new flag, and for the maven-war-plugin
which can't fork and specify jvm args we need ensure the MAVEN_OPTS has the
{code}
--add-opens java.desktop/java.awt.font=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED
{code}

Also need use pax-exam 4.10 which has the fix for PAXEXAM-803
[1]http://mail.openjdk.java.net/pipermail/jdk9-dev/2016-November/005276.html

> karaf java9 build is broken since 9-ea+148
> ------------------------------------------
>
>                 Key: KARAF-4900
>                 URL: https://issues.apache.org/jira/browse/KARAF-4900
>             Project: Karaf
>          Issue Type: Task
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>              Labels: java9
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message