Thank you all for your quick answers @Robert I have checked out the code and took a deeper look: the implementation of MWAR-397 is complex and will take some time, on the mid term I agree that it will an awesome solution https://issues.apache.org/jira/browse/MWAR-397
@Jörg The option --permit-illegal-access will not work for me as it will hide most of the problems of Java9 fo I would like to propose a simpler patch which prevents the maven-war-plugin from crashing at clinit https://github.com/apache/maven-plugins/pull/112 this will make it work just by disabling the cache I see it is a very temporary fix but lets everyone go on with Java9 Webapps If the idea is good a can file a JIRA, clean up the code respecting the conventions or the project and file a clean PR Another fallback would be to use the Kryo library, which let's you serialize non-serializable objects, but I have not tests 2017-04-10 22:46 GMT+02:00 Jörg Schaible <joerg.schai...@gmx.de>: > Enrico Olivelli wrote: > > > Il lun 10 apr 2017, 18:57 Karl Heinz Marbaise <khmarba...@gmx.de> ha > > scritto: > > > >> Hi, > >> > >> On 10/04/17 17:37, Enrico Olivelli wrote: > >> > Hi, > >> > I would like be able to build an existing project developed for java8 > >> > by simple running Maven on jdk9. > >> > > >> > Actually it is not possible, I am aware of that and I am currently > >> > following all the news about Maven and Java9 > >> > >> What is not possible ? Do you have an error message / log file etc. ? > >> > > > > Actually I am blocked on the TreeMap issue with xstream and > > maven-war-plugin. > > Is there any active work on that issue? > > I see it is marked as an external dep problem but on xstream issue > > tracker > > it seems that it is not a priority > > You should be able to run it with MAVEN_OPTS="--permit-illegal-access" - > at > least until a solution is available. > > Cheers, > Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > >