[英]Problems with Eclipse and m2eclipse
To use the latest version of the hibernate (version 3.6.1) , I refer to this the guide to add the Jboss repository URL to my project POM file. 要使用最新版本的休眠(版本3.6.1),请参阅本指南,以将Jboss存储库URL添加到我的项目POM文件中。 Then I go to the
Maven Repositories View
to rebuild the index for this repository . 然后,我进入
Maven Repositories View
来重建该存储库的索引。
After the rebuild , I still cannot search hibernate core version 3.6.1 when adding the dependencies using the m2eclipse 's POM GUI editor , and also cannot find hibernate-core 3.6.1 in the org.hibernate
node when browsing the repository tree of the added Jboss repository using the Maven Repositories View
. 重建后,当使用m2eclipse的POM GUI编辑器添加依赖项时,我仍然无法搜索hibernate core 3.6.1,并且在浏览版本库树的存储库树时,也无法在
org.hibernate
节点中找到hibernate-core 3.6.1。使用Maven Repositories View
添加了Jboss仓库。 However , I can find the 3.6.1 version when I browse the added Jboss repository using the browser directly (which is at https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/ ) 但是,当我直接使用浏览器浏览添加的Jboss存储库时,我可以找到3.6.1版本(位于https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core) / )
Why the contents of the repository tree in m2eclipse is different from that using the browser? 为什么m2eclipse中存储库树的内容与使用浏览器的内容不同? What happen here and how to make m2eclipse also get the 3.6.1 version ?
这里发生了什么以及如何使m2eclipse也获得3.6.1版本?
Here is repository setting added in my pom.xml 这是我的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>
In the screenshot I see repo1.maven.org
, but you'll need https://repository.jboss.org/nexus/content/repositories/releases/
. 在屏幕快照中,我看到了
repo1.maven.org
,但是您需要https://repository.jboss.org/nexus/content/repositories/releases/
。 I also have 3.6.1-Final of Hibernate in my project using m2eclipse, and there is no problem fetching it. 在我的项目中,我也使用m2eclipse进入了3.6.1-Hibernate的最终版本,并且获取它没有问题。 Please check your
pom.xml
if you have defined a <repository>
which points to the jboss repo. 如果定义了指向jboss
<repository>
的<repository>
,请检查pom.xml
。
Please paste the source of your pom.xml
, it seems that there is an error if you can not get it. 请粘贴您的
pom.xml
的源代码,如果无法获取,似乎有错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.