There is dependency convergence issue with xml-apis (v1.3.04 and v1.4.01). Here is maven-enforcer-plugin report: +-org.apache.poi:poi-ooxml:5.0.0 +-org.apache.xmlgraphics:batik-all:1.13 +-org.apache.xmlgraphics:batik-dom:1.13 +-xalan:xalan:2.7.2 +-xalan:serializer:2.7.2 +-xml-apis:xml-apis:1.3.04 +-org.apache.poi:poi-ooxml:5.0.0 +-org.apache.xmlgraphics:batik-all:1.13 +-org.apache.xmlgraphics:batik-dom:1.13 +-xml-apis:xml-apis:1.4.01
Can you work around this by specifying the newer version of xml-apis in your pom.xml explicitely? As far as I remember this is a way to get rid of such "maven-enforcer" violations locally.
Sure, that's the work around I implemented and got rid of the "maven-enforcer" violation. The current pom.xml looks like this: <dependencies> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.0.0</version> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <version>1.4.01</version> </dependency> </dependencies> However, I'm reporting this because the dependency conflict is within poi-ooxml and I think it should be tackle there.
The issue is in the batik dependencies.
You are right, should I report the issue there?
probably best to start with https://issues.apache.org/jira/projects/BATIK
I reported the issue in BATIK (https://issues.apache.org/jira/browse/BATIK-1297). I'll post here any update from them.
I think this will be solved by switching to the Gradle build and more specific as well as optional dependencies of batik. *** This bug has been marked as a duplicate of bug 65206 ***