poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branden Visser <mrvis...@gmail.com>
Subject Including poi-ooxml-schemas
Date Thu, 11 Aug 2016 20:03:10 GMT
Hi all, there is this dependency:

"org.apache.poi" % "poi-ooxml-schemas" % "3.15-beta2"

If you include it, then I think it gives you some subset of
ooxml-schemas 1.1, however not everything. For example, I've found
this:

===
java.lang.NoClassDefFoundError:
org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTRImpl$1DrawingList
at org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTRImpl.getDrawingList(Unknown
Source)
... snip
===

... when trying to get the drawings of an OOXML word document.
Additionally, if you include this dependency *in addition* to
ooxml-schemas 1.1, everything on my end seems to work fine, except if
you try and bundle up the application into a jar, most assemblies will
bomb out and give you an error that there are tons of duplicated class
files (you need to give a handling strategy):

===
deduplicate: different file contents found in the following:
/Users/branden/.ivy2/cache/org.apache.poi/poi-ooxml-schemas/jars/poi-ooxml-schemas-3.15-beta2.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTPivotTableStyleImpl.class
/Users/branden/.ivy2/cache/org.apache.poi/ooxml-schemas/jars/ooxml-schemas-1.1.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTPivotTableStyleImpl.class
deduplicate: different file contents found in the following:
/Users/branden/.ivy2/cache/org.apache.poi/poi-ooxml-schemas/jars/poi-ooxml-schemas-3.15-beta2.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTPrintOptionsImpl.class
/Users/branden/.ivy2/cache/org.apache.poi/ooxml-schemas/jars/ooxml-schemas-1.1.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTPrintOptionsImpl.class
deduplicate: different file contents found in the following:
/Users/branden/.ivy2/cache/org.apache.poi/poi-ooxml-schemas/jars/poi-ooxml-schemas-3.15-beta2.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTREltImpl.class
/Users/branden/.ivy2/cache/org.apache.poi/ooxml-schemas/jars/ooxml-schemas-1.1.jar:org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTREltImpl.class
... and so on for thousands of files.
===

However, if I include ooxml-schemas 1.1 only and omit the 3.15-beta2
version, everything works fine in my usage.

So it begs the question, what is the intended usage of this
"poi-ooxml-schemas" dependency?

Thanks,
Branden

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message