[英]Problems with Eclipse and m2eclipse
要使用最新版本的休眠(版本3.6.1),请参阅本指南,以将Jboss存储库URL添加到我的项目POM文件中。 然后,我进入Maven Repositories View
来重建该存储库的索引。
重建后,当使用m2eclipse的POM GUI编辑器添加依赖项时,我仍然无法搜索hibernate core 3.6.1,并且在浏览版本库树的存储库树时,也无法在org.hibernate
节点中找到hibernate-core 3.6.1。使用Maven Repositories View
添加了Jboss仓库。 但是,当我直接使用浏览器浏览添加的Jboss存储库时,我可以找到3.6.1版本(位于https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core) / )
为什么m2eclipse中存储库树的内容与使用浏览器的内容不同? 这里发生了什么以及如何使m2eclipse也获得3.6.1版本?
这是我的pom.xml中添加的存储库设置
<repositories>
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
在屏幕快照中,我看到了repo1.maven.org
,但是您需要https://repository.jboss.org/nexus/content/repositories/releases/
。 在我的项目中,我也使用m2eclipse进入了3.6.1-Hibernate的最终版本,并且获取它没有问题。 如果定义了指向jboss <repository>
的<repository>
,请检查pom.xml
。
请粘贴您的pom.xml
的源代码,如果无法获取,似乎有错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.