java10 compilation errors (dependencies)
Hi,
I'm migrating a really big project from java8 to java10. Lost of the code was written over ten years ago;)
Those are multi module projects and after adding all the module-info.java files and updating dependencies to newer versions I'm at a stage where everything compiles/builds in maven.
But when trying to build in Intellij I get hundreds of compilation errors like:
...
Error:java: module org.json reads package javax.xml.transform.dom from both java.xml and xml.apis
Error:java: module dynamicreports.core reads package org.w3c.dom.events from both java.xml and batik.ext
Error:java: module slf4j.api reads package org.apache.batik.util from both batik.util and batik.constants
Error:java: module slf4j.api reads package org.xml.sax from both java.xml and xml.apis
...
Intellij doesn't show where the errors occur (which files).
Should I try and figure out those errors? Or is it sth wrong with intellij as everything works fine in maven?
Using maven 3.5.4, java 10.0.2 and latest intellij (also tried 18.3 EAP).
Thanks
Adam
Please sign in to leave a comment.
Please check if https://youtrack.jetbrains.com/issue/IDEA-171320 is the case (see also the duplicates).
Thanks but I'm afraid it's a different case.
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA with a small sample project to reproduce so that we can investigate the issue.