https://issues.apache.org/bugzilla/show_bug.cgi?id=50801

Yegor Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from Yegor Kozlov <[email protected]> 2011-02-21 03:10:42 EST ---
POI should run fine with stax:stax-api. Other Apache projects use this
dependency I don't see why POI shouldn't. 

We used to depend on javax.xml.bind.jsr173_api and had to switch to geronimo's
because of that licensing issue. stax:stax-api is ALv2 (see
http://repo2.maven.org/maven2/stax/stax-api/1.0.1/stax-api-1.0.1.pom) and is
fine from the licensing point of view. 

I checked locally and POI builds OK against stax:stax-api, both under JDK 1.5
and JDK 1.6, so I'm for abandoning geronimo and using stax-api.

Perhaps, to be on the safe side, we can split the fix into two parts:

 (a) The short-term fix is to exclude stax-api from poi-ooxml-schemas.pom, as
suggested above. This is definitely safe and we can push this fix in 3.8-beta1
(expected in early March)
 (b) The long-term fix is to abandon
org.apache.geronimo.specs:geronimo-stax-api_1.0_spec and to use stax:stax-api. 

BTW, commons-logging:jar:1.1 has a weird dependency chain. What
avalon-framework and servlet-api are doing here? 

$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven test project
[INFO]    task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree {execution: default-cli}]
[INFO] org.apache.poi.maven:maven-test:jar:1.0-beta
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] \- org.apache.poi:poi-ooxml:jar:3.6:compile
[INFO]    +- org.apache.poi:poi:jar:3.6:compile
[INFO]    |  +- commons-logging:commons-logging:jar:1.1:runtime
[INFO]    |  |  +- logkit:logkit:jar:1.0.1:runtime
[INFO]    |  |  +- avalon-framework:avalon-framework:jar:4.1.3:runtime
[INFO]    |  |  \- javax.servlet:servlet-api:jar:2.3:runtime
[INFO]    |  \- log4j:log4j:jar:1.2.13:runtime
[INFO]    +- org.apache.poi:poi-ooxml-schemas:jar:3.7-beta4:compile
[INFO]    |  +- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
[INFO]    |  |  \- stax:stax-api:jar:1.0.1:compile
[INFO]    |  \-
org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0:compile
[INFO]    \- dom4j:dom4j:jar:1.6.1:compile
[INFO]       \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Mon Feb 21 11:05:52 MSK 2011
[INFO] Final Memory: 10M/24M
[INFO] ------------------------------------------------------------------------


Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to