Issues with Clojure inter-dependency with different major versions of the same library

帅比萌擦擦* 提交于 2019-12-06 05:44:16
Daniel Compton

There aren't any easy answers for this problem. Here are some options:

  • Upgrade Any23 to use Sesame 4.x
  • Use something like Maven Shade to rename one of the Sesame packages so that they can both be loaded on the same classpath. You may run into trouble if you try to use or share objects between the two libraries.
  • Use Clojure OSGI to isolate the packages. (This is probably the most difficult option, although also the most 'correct').

For more info, see Java, Classpath, Classloading => Multiple Versions of the same jar/project and Wikipedia's entry on JAR Hell.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!