gpt4 book ai didi

java - 如何更新随 Play 提供的 Hibernate?

转载 作者:搜寻专家 更新时间:2023-11-01 02:52:42 25 4
gpt4 key购买 nike

Play 框架带有旧的 Hibernate 版本 (3.6.1)。如何在我的 Play 应用程序中更新 Hibernate?通过 Ivy ?

按照 Pere 的建议,我尝试了:

require:
- play
- org.hibernate -> hibernate-core 3.6.8 force: true

repositories:
- jboss:
type: http
root: "http://repository.jboss.org/nexus/content/groups/public/"
contains:
- org.jboss -> *
- org.jboss.javaee -> *
- org.hibernate -> *

但是没有任何反应。当我查看 Ivy 缓存目录时,Hibernate 3.6.8 不存在,似乎什么也没有发生。

最佳答案

您应该能够按照说明强制使用新版本 in here (注意:我没有测试过这个,现在也不能)。

你应该添加你的 dependencies.yml

 - org.hibernate -> hibernate-core 3.6.1
force: true

用您选择的版本替换版本号。标志 force 应该覆盖 Play 使用的默认值

编辑:

您可能需要指向 JBoss 存储库,请参阅 Stephano 的评论:

I followed strictly the play dependencies maven2 example and added org.jboss -> * AND org.jboss.javaee -> * and works perfectly

关于java - 如何更新随 Play 提供的 Hibernate?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8322803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com