Bundled dependency org.w3c.dom causing trouble with modular project

35 views
Skip to first unread message

fuf...@gmail.com

unread,
Oct 18, 2022, 7:33:57 AM10/18/22
to jOpenDocument
Hi All,
I am a happy user of jOpenDocument for years. I am now modularizing an existing project but I got stack with the package 'org.w3c.dom' that is included in the jOpendocument jar file which conflicts with the same package of the java platform from java.xml.
I was trying to exclude 'org.w3c.dom' in my Gradle build file but this is not possible because only transitive dependences can be excluded  (https://stackoverflow.com/questions/66319001/excluding-dependency-does-not-help-to-fix-the-package-org-w3c-dom-is-accessible), not packages bundled in the jar.
Does anybody have a solution for this?
Thanks in advance

Carlo

Guillaume Maillard

unread,
Oct 29, 2022, 1:31:27 PM10/29/22
to jopend...@googlegroups.com
Hi Carlo,

Is it so complicated to include jOpenDocument from source code, or split the jOpenDocument jar as needed?

Regards,
Guillaume

--

---
You received this message because you are subscribed to the Google Groups "jOpenDocument" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jopendocumen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jopendocument/413a24b9-769c-49b5-84b9-517207ade9ecn%40googlegroups.com.

fuf...@gmail.com

unread,
Dec 14, 2022, 2:30:13 AM12/14/22
to jOpenDocument
Hi Guillaume
sorry for the late reply. I was taking that route: starting from the source code and re-package the library. As I am not really an expert and quite new to the java modularity, I got stuck relative soon with that approach and moved to other issues of my projects. Anyhow, at a certain point I must fix this problem since I use a lot of opendocument.
Instead of re-packaging, including the source code in the project could be a clever way, I will try that and let you know. jOpenDocument is a really good library, I would be sad to drop it.

Best regards
Carlo

Guillaume Maillard

unread,
Dec 14, 2022, 5:34:47 AM12/14/22
to jopend...@googlegroups.com
Hi,

For special needs like that, you can ask our "pro support" team provided in our Premium Distribution License.

Regards,
Guillaume

Reply all
Reply to author
Forward
0 new messages