Getting rid of the 'no module descriptor' error in Maven builds#449
Getting rid of the 'no module descriptor' error in Maven builds#449code4t2 wants to merge 1 commit intoeeverman:masterfrom code4t2:Issue-448_no_module_descriptor_error
Conversation
This error is primarily caused with Maven currently being unable to work with Java 9+ 's module system. - andhow-annoitation-processor maven-compiler-plugin targeting Java 9 - Added an additional option to generate javadoc in HTML 5 to get rid of a lengthy warning about future migrations - Added Java 9+ module-info to supply module descriptors to Maven - *BONUS* "The POM for com.sun:tools:jar:___:1.8 is missing, no dependency information available" x 2 also eliminated by Modular build - maven-enforcer-plugin max Java version increased to <11 from <1.9
|
Oh no, looks like the CI build failed. Looking through its logs seems to suggest that it used JDK 1.8 - 191. This wouldn't work, of course. It needs JDK 9+ Tested on my PC with JDK 10.0.1 and Maven 3.5.4 |
|
Ah, I wouldn't have guessed those module errors are related to JDK9 modules. Maybe they added it as a warning in the newest versions of JDK8. I cannot switch to JDK9 for this release, otherwise it will not work with projects running on JDK8. I have some discussion of this here. I should create a roadmap page, but the milestone page has some details of release planning:
Is there a portion of this PR that can be kept for 0.4.1, or does all of it belong in the 0.6.0 release? |
eeverman
left a comment
There was a problem hiding this comment.
See my comments. We cannot switch to JDK9 for this release.
|
Ah. Thanks for pointing out the page with the details of milestones. This helps a lot. It's been ages since I looked around GitHub. I mainly use GitLab personally and at work. Will go through the site in detail later today. No, @eeverman . I do not think any part of #448 can be retained for anything pre-0.6.0 . Every line in there is focused around the single issue, which is also why I had to raise a PR for the single On the bright side, unless the package names change #448 could go into 0.6.0 without throwing up any conflicts. It could even be one of the first commits (pending review around JDK9+ module system changes) |
|
Related Issue: #375 |
This error is primarily caused with Maven currently being unable to work with Java 9+ 's module system.
Here's an interesting write up about it by Maven Guru Robert Scholte
The main changes as part of this MR are as follows:
This ensures that the output from
maven-javadoc-pluginreduced fromto
Must eliminate that one warning that keeps coming with JDK 8. Will probably raise a tiny MR to fix it later.
Fixes #448
Kindly review bearing in mind this means a (most likely irreversible) move to Java 9+