Re: JDK9: Failed to parse module-info.java

2017-08-13 Thread Robert Scholte
Hi Plamen, That's right, it is intended for the code being build and the library can be used while running on Java 7. There's only one tricky thing: when there's no module descriptor and no manifest file with an Automatic-Module-Name, then the module name must be calculated based on the

Re: JDK9: Failed to parse module-info.java

2017-08-13 Thread Plamen Totev
Hi Robert, Plexus Languages looks very promising and really needed component. May I ask you something to clarify if I understand correctly it's purpose. The intention is Plexus Languages to contain abstractions that represent the code that is going to be build and not the JDK/JRE used to run

Re: JDK9: Failed to parse module-info.java

2017-08-12 Thread Karl Heinz Marbaise
Hi Robert, I've made a separate issue MCOMPILER-304 to introduce plexus-language component. Kind regards Karl Heinz Marbaise On 12/08/17 19:23, Robert Scholte wrote: Hi, short answer: to be able to compile Java 9 projects, you must use the JRE from Maven (i.e. JAVA_HOME must point to JDK

Re: JDK9: Failed to parse module-info.java

2017-08-12 Thread Robert Scholte
Hi, short answer: to be able to compile Java 9 projects, you must use the JRE from Maven (i.e. JAVA_HOME must point to JDK 9). The long story: asm-6.0_ALPHA is based on an old format of the module-info file. Only a few weeks ago asm-6.0_BETA was released. There was over a year between

JDK9: Failed to parse module-info.java

2017-08-12 Thread Karl Heinz Marbaise
Hi, currently I'm facing the following issue with JDK9+181: (using maven-compiler-plugin:3.6.2): [DEBUG] CompilerReuseStrategy: reuseCreated [DEBUG] useIncrementalCompilation enabled [ERROR] Failed to parse module-info: [ERROR] With reflect: null [ERROR] With asm: null [ERROR] Failed to