spreadsheet icon indicating copy to clipboard operation
spreadsheet copied to clipboard

OSGi support for dependencies

Open tulioag opened this issue 8 years ago • 2 comments

Spreadsheet has some dependencies that are not provided as OSGi bundles. One example is Apache POI, for which there is a bug open https://bz.apache.org/bugzilla/show_bug.cgi?id=57857. Also according to apache POI documentation, only versions > 3.16 can be used with OSGi

Therefore, although spreadsheet itself can be installed, it can not be used to create applications. Trying to deploy a portlet that depends on spreadsheet generates the following error:

Unresolved requirement: Import-Package: org.apache.poi

Since Spreadsheet is provided is an OSGi bundle, and therefore appears to work, I think it would make sense to either document that it is not supported or provide some kind of example of how it can be used.

tulioag avatar Sep 28 '17 15:09 tulioag

https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/3.15_1.jar is an osgi bundle that contains all the dependencies but when used with the spreadsheet jar has a problem which I have reported as an issue #645

QNENet avatar Dec 02 '17 09:12 QNENet

I've done it myself. It took me 2-3 days approximately. Now I have spreadsheet 2.0.1 OSGi jar and use it on Liferay 7

kda1998 avatar Dec 13 '17 06:12 kda1998