Hibernate 3.6.10 Dependency resolution

ⅰ亾dé卋堺 提交于 2019-11-29 18:14:10

Your problem is that only one copy of the slf4j jar can be used on the classpath, so you need to decide which one to keep. Choosing the older version might fix one compilation error, but cause another :-)

By default, ivy will choose the latest one on the assumption that it would be backwardly compatible. You can override this behaviour by using a conflict indicator as follows:

<dependencies>
    <dependency org="org.hibernate" name="hibernate-core" rev="3.6.10.Final" conf="compile->default"/>
    <dependency org="org.slf4j" name="slf4j-api" rev="1.5.8" conf="compile->default"/>

    <conflict org="org.slf4j" module="slf4j-api" rev="1.5.8"/>
</dependencies>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!