gpt4 book ai didi

java - eclipse m2e 在当前版本中找不到 hibernate-core 的依赖项

转载 作者:行者123 更新时间:2023-12-01 14:07:57 26 4
gpt4 key购买 nike

我正在使用 eclipse 4.3 和 maven 插件 (m2e)。

我将此依赖项添加到我的项目的 pom.xml 中:

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.2.5.Final</version>
</dependency>

我从这里获取依赖项:http://mvnrepository.com/artifact/org.hibernate/hibernate-core/4.2.5.Final

但是 m2e 插件说:

Missing artifact org.hibernate:hibernate-core:jar:4.2.5.Final

如果我将版本更改为 4.2.3 一切正常。

我已经尝试(多次)更新和重建central-maven-repository的索引。

有什么想法吗? TIA!

编辑:我的 Maven 存储库(在 Eclipse 中):

enter image description here

最佳答案

正如 chrysilis 在评论中提到的,问题是我的本地存储库中的一个损坏的包。删除后一切正常。

关于java - eclipse m2e 在当前版本中找不到 hibernate-core 的依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18752654/

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