Bug 51943 - XSSFColor references CTColor, which pulls in an additional 4MB jar file
Summary: XSSFColor references CTColor, which pulls in an additional 4MB jar file
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows Vista
: P2 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2011-10-03 19:58 UTC by Jim Talbut
Modified: 2011-10-03 20:49 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jim Talbut 2011-10-03 19:58:33 UTC
XSSFColor is based on CTColor.
In order to resolve CTColor the poi-ooxml-schemas-3.8-beta4-20110826.jar JAR file is dragged in, when it would not otherwise be required.
In my particular case that doubles the size of my JAR file.

Is it possible to rewrite XSSFColor without reference to CTColor?
If not, http://poi.apache.org/overview.html should be updated to make it clear that poi-ooxml-schemas is requred for XSSF if colours are required.
Comment 1 Jim Talbut 2011-10-03 20:04:31 UTC
Sorry, I'm wrong, the overview page already correctly states that poi-ooxml depends on schemas, and from the comments there I'm guessing you already done what you can to shrink it.
Comment 2 Nick Burch 2011-10-03 20:49:11 UTC
XSSF always requires either poi-ooxml-schemas or the full ooxml-schemas. The schema file provides readers and writers onto the underlying xml format.

(There's nothing special about colours, all of XSSF needs it)