<div dir="ltr"><div><br></div><div>I found this, that could help:</div><br><div><a href="https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw">https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw</a><br></div><div><br></div><div><table class="gmail-confluenceTable gmail-tablesorter gmail-tablesorter-default gmail-stickyTableHeaders" style="border-collapse:collapse;margin:0px;overflow-x:auto;color:rgb(51,51,51);font-family:arial,sans-serif;font-size:14px;padding:0px"><tbody><tr><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top">com.thoughtworks.xstream</td><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top">xstream</td><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top"> </td><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top"> </td><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top"><p style="margin:0px;padding:0px">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 &quot;opens java.util&quot; to unnamed module</p>Happens while initializing org.apache.maven.plugins.war.util.WebappStructureSerializer</td><td colspan="1" class="gmail-confluenceTd" style="border:1px solid rgb(221,221,221);padding:7px 10px;vertical-align:top">maven-war-plugin</td></tr></tbody></table></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><a href="http://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m/41265267">http://stackoverflow.com/questions/41265266/how-to-solve-inaccessibleobjectexception-unable-to-make-member-accessible-m/41265267</a></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-05 10:04 GMT-02:00 Michael Musgrove <span dir="ltr">&lt;<a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>We have just upgraded our jdk build to 9-ea+149 which has tightened up the accessibility rules. The recommendation seems to be to use the --add-opens flag to override the rules.</div><div><br></div><div>I tried export MAVEN_OPTS=&quot;--add-opens java.base/java.util=ALL-<wbr>UNNAMED&quot; which made no difference. Our jdk 9 FAQ does not provided any hints either.</div><div><br></div><div>Can anyone provide advice on how to resolve the following maven build error:</div><div><br></div><div><br></div><div>[WARNING] Error injecting: org.apache.maven.plugins.war.<wbr>WarMojo</div><div>com.google.inject.<wbr>ProvisionException: Unable to provision, see the following errors:</div><div><br></div><div>1) Error injecting constructor, java.lang.<wbr>ExceptionInInitializerError</div><div>  at org.apache.maven.plugins.war.<wbr>WarMojo.&lt;init&gt;(Unknown Source)</div><div>  while locating org.apache.maven.plugins.war.<wbr>WarMojo</div><div><br></div><div>...</div><div><br></div><div>Caused by: java.lang.reflect.<wbr>InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not &quot;opens java.util&quot; to unnamed m</div><div>odule @669f2128</div><div>        at java.base/jdk.internal.<wbr>reflect.Reflection.<wbr>throwInaccessibleObjectExcepti<wbr>on(Reflection.java:427)</div><div>        at java.base/java.lang.reflect.<wbr>AccessibleObject.<wbr>checkCanSetAccessible(<wbr>AccessibleObject.java:201)</div><div>        at java.base/java.lang.reflect.<wbr>Field.checkCanSetAccessible(<wbr>Field.java:171)</div><div>        at java.base/java.lang.reflect.<wbr>Field.setAccessible(Field.<wbr>java:165)</div><div>        at com.thoughtworks.xstream.core.<wbr>util.Fields.locate(Fields.<wbr>java:40)</div><div>        at com.thoughtworks.xstream.<wbr>converters.collections.<wbr>TreeMapConverter.&lt;clinit&gt;(<wbr>TreeMapConverter.java:50)</div><div><br></div><div><br></div>-- <br><div class="gmail-m_1415133792926062500gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Michael Musgrove</div><div>Transactions Team</div><div>e: <a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a></div><div>t: <a href="tel:+44%20191%20243%200870" value="+441912430870" target="_blank">+44 191 243 0870</a></div><div><br></div><div>Our mission:To be the catalyst in communities of customers, contributors, and partners creating better technology the open source way. <br></div><div><br></div><div>Registered in England and Wales under Company Registration No. 03798903</div><div>Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson</div><div>(US), Charles Peters (US)</div><div><br></div><div>Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O&#39;Neill(Ireland)</div></div></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="1"><span style="font-family:arial">________________</span><span style="font-family:arial">______</span></font><span style="font-family:arial;font-size:x-small">__</span><span style="font-family:arial;font-size:x-small">_</span><span style="font-family:arial;font-size:x-small">_</span><span style="font-family:arial;font-size:x-small">_</span></div><div><div align="left" style="font-family:arial"><font size="1">Eduardo Sant&#39;Ana da Silva - Ph.D.</font></div><div style="font-family:arial"><font face="Arial" size="1">Researcher / IT Consultant<br></font></div><div style="font-family:arial;font-size:small"><br></div></div></div></div></div></div></div></div>
</div></div>