'Using TIKA and POI in the same project without getting into version issues?
I've got a requirement to generate reports as xls-sheets, but I already have TIKA in my project. Now TIKA does include POI, what worries me here is that TIKA 1.2 (which I'm using currently) includes a beta build of POI 3.8.
I foresee the day when I have to update either POI or TIKA due to a bugfix, while keeping the other one as is. Does anyone have experience with this situation? Is it an issue in reality or should I just go with the POI version that comes with TIKA?
If I want/need to keep them separate, are there accepted practices how to manage this (I guess there is no way around whacking my own ClassLoader to do this?).
Solution 1:[1]
I was attempting to use Tika 2.2.1 and POI 5.2.2 together and it kept failing with "unknown class" errors. I didn't realize that Tika used POI, so I simply removed the POI classes from my project and it's working now. I'm lucky that I don't have to do anything fancy with POI so I don't care exactly which version of POI is used.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Randy Stegbauer |
