Hi all,
Eclipse is bugging me with an error for some time now:
"the package org.xml.sax is accessible from more than one module"
Apparently wicket-examples' test dependency on httpUnit is pulling in
xerces:xmlParserAPIs. This leads to the org.xml.sax package being twice
on the classpath from different modules, something which is not allowed
with Java 9:
https://stackoverflow.com/questions/51094274/eclipse-cant-find-xml-related-classes-after-switching-build-path-to-jdk-10
Eclipse's compiler seems to be stricter than javac:
https://bugs.openjdk.java.net/browse/JDK-8215739
Here I can fix this by excluding xmlParserAPIs:
<dependency>
<groupId>org.httpunit</groupId>
<artifactId>httpunit</artifactId>
<version>1.7.3</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
</exclusion>
</exclusions>
</dependency>
Any objections against this change? Does this effect your IDE
(intellij?) negatively?
Sorry if this has been discussed before.
Have fun
Sven