[
https://issues.apache.org/jira/browse/BATIK-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246709#comment-17246709
]
Carte Project commented on BATIK-1289:
--------------------------------------
bq. Do others have the same issue or am I doing something wrong
Yes I do have the same issue with Eclipse and JDK 15. There are {{add-reads}}
tricks that can be used to work around the problem (and I assume that IntelliJ
does just that), but those conflicting {{org.w3c}} and {{javax.xml}} packages
should be removed from {{xml-apis-ext}}.
If I attempt to build a modular project with Maven and Java 15, and Batik 1.13
is a dependency, I get a ton of these:
{noformat}
[ERROR] the unnamed module reads package org.w3c.dom.css from both xml.apis and
jdk.xml.dom
[ERROR] the unnamed module reads package org.w3c.dom.html from both xml.apis
and jdk.xml.dom
[ERROR] the unnamed module reads package org.w3c.dom.stylesheets from both
xml.apis and jdk.xml.dom
[ERROR] the unnamed module reads package org.w3c.dom.xpath from both xml.apis
and jdk.xml.dom
[ERROR] the unnamed module reads package javax.xml from both xml.apis and
java.xml
[ERROR] the unnamed module reads package javax.xml.datatype from both xml.apis
and java.xml
[ERROR] the unnamed module reads package javax.xml.namespace from both xml.apis
and java.xml
[ERROR] the unnamed module reads package javax.xml.parsers from both xml.apis
and java.xml
[ERROR] the unnamed module reads package javax.xml.stream from both xml.apis
and java.xml
[ERROR] the unnamed module reads package javax.xml.stream.events from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.stream.util from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.transform from both xml.apis
and java.xml
[ERROR] the unnamed module reads package javax.xml.transform.dom from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.transform.sax from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.transform.stax from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.transform.stream from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.validation from both
xml.apis and java.xml
[ERROR] the unnamed module reads package javax.xml.xpath from both xml.apis and
java.xml
[ERROR] the unnamed module reads package org.w3c.dom from both xml.apis and
java.xml
[ERROR] the unnamed module reads package org.w3c.dom.bootstrap from both
xml.apis and java.xml
[ERROR] the unnamed module reads package org.w3c.dom.events from both xml.apis
and java.xml
[ERROR] the unnamed module reads package org.w3c.dom.ls from both xml.apis and
java.xml
[ERROR] the unnamed module reads package org.w3c.dom.ranges from both xml.apis
and java.xml
[ERROR] the unnamed module reads package org.w3c.dom.traversal from both
xml.apis and java.xml
[ERROR] the unnamed module reads package org.w3c.dom.views from both xml.apis
and java.xml
[ERROR] the unnamed module reads package org.xml.sax from both xml.apis and
java.xml
[ERROR] the unnamed module reads package org.xml.sax.ext from both xml.apis and
java.xml
[ERROR] the unnamed module reads package org.xml.sax.helpers from both xml.apis
and java.xml
{noformat}
and also:
{noformat}
[ERROR] module batik.transcoder reads package org.w3c.dom.css from both
xml.apis and jdk.xml.dom
[ERROR] module batik.transcoder reads package org.w3c.dom.html from both
xml.apis and jdk.xml.dom
[ERROR] module batik.transcoder reads package org.w3c.dom.stylesheets from both
xml.apis and jdk.xml.dom
[ERROR] module batik.transcoder reads package org.w3c.dom.xpath from both
xml.apis and jdk.xml.dom
[ERROR] module batik.transcoder reads package javax.xml from both xml.apis and
java.xml
[ERROR] module batik.transcoder reads package javax.xml.datatype from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.namespace from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.parsers from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.stream from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.stream.events from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.stream.util from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.transform from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.transform.dom from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.transform.sax from both
xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.transform.stax from
both xml.apis and java.xml
[ERROR] module batik.transcoder reads package javax.xml.transform.stream from
both xml.apis and java.xml
{noformat}
Right now, Batik is unusable in JPMS modular projects.
> batik, xml-apis-ext and java modules
> ------------------------------------
>
> Key: BATIK-1289
> URL: https://issues.apache.org/jira/browse/BATIK-1289
> Project: Batik
> Issue Type: Bug
> Affects Versions: 1.12
> Reporter: Tore Halset
> Priority: Major
>
> batik uses xml-apis-ext that include org.w3c-packages, but there are also
> some org.w3c-packages in java core modules.
>
> Typical error in Eclipse is The package org.w3c.dom is accessible from more
> than one module: {{<unnamed>}}, org.w3c.
>
>
>
> I have a workaround for this in my project now, but hope for a better more
> official solution.
> # Moved all of the org.w3c from xml-apis-ext to packages not used by other
> modules. [https://github.com/halset/xml-apis-ext]
> # Refactored batik to use the new package names.
> [https://github.com/halset/xmlgraphics-batik/tree/modulefix]
>
>
> Do others have the same issue or am I doing something wrong?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]