[ https://issues.apache.org/jira/browse/MWAR-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980405#comment-15980405 ]
Hudson commented on MWAR-405: ----------------------------- SUCCESS: Integrated in Jenkins build maven-plugins #8935 (See [https://builds.apache.org/job/maven-plugins/8935/]) [MWAR-405] Workaround XStream incompatibility with Java9 Contributed by Enrico Olivelli, reviewed and applied by Robert Scholte this closes #112 (rfscholte: [http://svn.apache.org/viewvc/?view=rev&rev=1792363]) * (edit) maven-war-plugin/pom.xml * (edit) maven-war-plugin/src/main/java/org/apache/maven/plugins/war/util/WebappStructureSerializer.java > Workaround XStream incompatibility with Java9 > --------------------------------------------- > > Key: MWAR-405 > URL: https://issues.apache.org/jira/browse/MWAR-405 > Project: Maven WAR Plugin > Issue Type: Bug > Affects Versions: 3.0.0 > Reporter: Enrico Olivelli > Assignee: Robert Scholte > Priority: Blocker > Fix For: 3.1.0 > > > The problem is that XStreams tries to access "comparator" field of > java.util.TreeMap and this is forbidden in Java9 > {code} > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make > field private final java.util.Comparator java.util.TreeMap.comparator > accessible: module java.base does not "opens java.util" to unnamed module > Happens while initializing > org.apache.maven.plugins.war.util.WebappStructureSerializer > {code} > A possibile workaround is to change the initialization of XStreams in a way > that only useful converters are registers, thus bypassing the problem -- This message was sent by Atlassian JIRA (v6.3.15#6346)