I have come across this answer How to integrate Liferay DXP with Apache POI? regarding my question but i have a couple more unanswered questions :
How did you manage to find all the required packages to exclude from importing in bnd.bnd file ?
I tried the same thing in ECLIPSE IDE with Liferay 7.0 Workspace only with 'poi','poi-ooxml' and 'poi-ooxml-schemas', version: '3.17' and all dependencies of these 3 jars and got me nowhere.
I had to do a lot of compile, deploy, go to gogo shell and try to start the bundle and get a new missing import package and add it to exclusion list, and by doing this i wasted 8-9 hours and got a huge list of excluded packages but the bundle still not working.
I want to know what did you use (IDE or other programs) and how did you find the unnecessary dependencies and removed them?
This would be very helpful for future cases like this one with POI.
Thank you,