Bug 51943

Summary: XSSFColor references CTColor, which pulls in an additional 4MB jar file
Product: POI Reporter: Jim Talbut <jim-apache>
Component: XSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: minor    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   

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)