添加JBoss仓库到m2eclipse,没有最新的Hibernate版本 [英] Adding JBoss repository to m2eclipse, no latest Hibernate version

查看:120
本文介绍了添加JBoss仓库到m2eclipse,没有最新的Hibernate版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将JBoss存储库添加到m2eclipse中,主要用于Hibernate。它似乎工作,但它无法找到最新版本的Hibernate(3.5.1),只有3.5.0beta。我看了一些其他的包,他们都似乎落后了几个月。什么可能导致这个?
我正在运行最新的m2eclipse,并且我猜想最新的Eclipse(它只是说20100218-1602,eclipse人认为它很有趣,不包括关于对话框中的版本),在Ubuntu 9.10中。



这是我的settings.xml

 < settings> 
<个人资料>
<个人资料>
< id> jboss-maven2-release-repository< / id>
<激活>
< activeByDefault> true< / activeByDefault>
< / activation>

< repositories>
< repository>
< id> jboss-maven2-release-repository< / id>
< url> http://repository.jboss.org/maven2< / url>
<发布>
< enabled> true< / enabled>
< / releases>
<快照>
<启用> false< / enabled>
< / snapshots>
< / repository>
< repository>
< id> jboss-snapshots< / id>
< url> http://snapshots.jboss.org/maven2< / url>
<发布>
<启用> false< / enabled>
< / releases>
<快照>
< enabled> true< / enabled>
< / snapshots>
< / repository>
< / repositories>
< pluginRepositories>
< pluginRepository>
< id> jboss-releases< / id>
< url> http://repository.jboss.org/maven2< / url>
<发布>
< enabled> true< / enabled>
< / releases>
<快照>
<启用> false< / enabled>
< / snapshots>
< / pluginRepository>
< pluginRepository>
< id> jboss-snapshots< / id>
< url> http://snapshots.jboss.org/maven2< / url>
<发布>
<启用> false< / enabled>
< / releases>
<快照>
< enabled> true< / enabled>
< / snapshots>
< / pluginRepository>
< / pluginRepositories>
< / profile>
< / profiles>


解决方案

谢谢帕斯卡,但我只是想清楚问题所在。 JBoss最近改用了nexus,并且不再更新旧的repo( http://repository.jboss.org/maven2



您可以在这里找到新的存储列表:

https://repository.jboss.org/nexus/index.html#view-repositories



它们在m2eclipse上工作正常(一切都是最新的)



无论如何,很棒的工作宣布了这一点,JBoss ,我只花了5个小时的谷歌搜索来找到新的回购:(


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>

解决方案

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 :(

这篇关于添加JBoss仓库到m2eclipse,没有最新的Hibernate版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆