将 JBoss 存储库添加到 m2eclipse,没有最新的 Hibernate 版本
我正在尝试将 JBoss 存储库添加到 m2eclipse,主要用于 Hibernate。看起来可以,但是找不到最新版本的Hibernate(3.5.1),只有3.5.0beta。我查看了其他一些包裹,它们似乎都晚了几个月。可能是什么原因造成的? 我正在 ubuntu 9.10 上运行最新的 m2eclipse,我猜是最新的 Eclipse(它只是说 20100218-1602,Eclipse 人们认为在“关于”对话框中不包含版本很有趣)。
这是我的settings.xml
<settings>
<profiles>
<profile>
<id>jboss-maven2-release-repository</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>jboss-maven2-release-repository</id>
<url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-releases</id>
<url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
I'm trying to add JBoss repository to m2eclipse, mainly for Hibernate. It seems to work, but it can't find the latest version of Hibernate (3.5.1), only 3.5.0beta. I looked at some other packages, and they all seem a couple of months behind. What could be causing this?
I'm running latest m2eclipse, and i guess latest Eclipse (it just says 20100218-1602, eclipse people think it's funny to not include version in the about dialog), on ubuntu 9.10.
This is my settings.xml
<settings>
<profiles>
<profile>
<id>jboss-maven2-release-repository</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>jboss-maven2-release-repository</id>
<url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-releases</id>
<url>http://repository.jboss.org/maven2</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>jboss-snapshots</id>
<url>http://snapshots.jboss.org/maven2</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢帕斯卡,但我刚刚弄清楚问题出在哪里。 JBoss 最近切换到 nexus,并且不再更新旧的存储库 (http://repository.jboss.org/maven2 )
您可以在此处找到新的存储库列表:
https:// /repository.jboss.org/nexus/index.html#view-repositories
它们与 m2eclipse 一起工作得很好(一切都是最新的)
无论如何,宣布这一点很棒,JBoss,我刚刚花了 5 个小时在谷歌上搜索找到新的回购协议:(
Thank you Pascal, but I just figured out what the problem was. JBoss recently switched to nexus, and is no longer updating the old repo (http://repository.jboss.org/maven2)
You can find the new list of repositories here:
https://repository.jboss.org/nexus/index.html#view-repositories
They work fine with m2eclipse (everything is up to date)
Anyways, great job announcing this, JBoss, I just spent 5 hours googling to find the new repo :(
nexus 索引很可能已经过时,只需手动添加依赖项:
我不会使用配置文件,而只是将存储库添加到 pom 顺便说一句(但这是个人选择):
The nexus index is very likely out of date, just add the dependency manually:
I wouldn't use a profile but simply add the repository to the pom BTW (but this is a personal choice):