【发布时间】:2018-04-10 19:04:07
【问题描述】:
我正在尝试将 Apache POI 集成到 Liferay DXP(OSGi) 中,但无法在 gradle 项目中解决与 POI 3.17 版本的依赖关系。 我已经使用以下 JAR 创建了独立项目:
- poi-3.17.jar
- poi-ooxml-3.17.jar
- poi-ooxml-schemas-3.17.jar
- xmlbeans-2.6.0.jar
- commons-collections4-4.1.jar
另外,我在 build.gradle
中添加了以下 gradle 依赖项compile group: 'org.apache.poi', name: 'poi', version: '3.17'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17'
compile group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: '3.17'
compile group: 'org.apache.xmlbeans', name: 'xmlbeans', version: '2.6.0'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
此外,bnd.bnd 中也提供了相应的 jar。 知道我在这里缺少什么吗?
【问题讨论】:
-
Apache ServiceMix 为 Apache POI 提供 OSGi 包,为什么不使用这些包?
标签: excel apache-poi build.gradle liferay-7 liferay-dxp