Can I use a jar with different versions in just one bundle?

Can I use a jar with different versions in just one bundle? Nuxeo platform 7.10 (LTS2015) uses jedis 2.7.0 to communicate with Redis server. I have my bundle it communicates with new Redis server, this bundle has the spring-data-redis to connect with Redis and it needs to use jedis 2.9.0 to work. Are there a way to use the jedis 2.9.0 in just one bundle?

0 votes

1 answers

1615 views

ANSWER



No, Nuxeo uses a flat classpath. You can try replacing Nuxeo's Jedis with the one you want. If the APIs are compatible it should work. Or make spring-data-redis use Nuxeo's, again if it's compatible.

1 votes



Thank you very much!
12/23/2017