poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Stadler <dominik.stad...@gmx.at>
Subject Re: Including poi-ooxml-schemas
Date Thu, 11 Aug 2016 21:11:30 GMT
The FAQ-entry at http://poi.apache.org/faq.html#faq-N10025 tries to explain
this. Please take a look and let us know if anything is still unclear then.

Dominik

On Aug 11, 2016 10:03 PM, "Branden Visser" <mrvisser@gmail.com> wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message