将 JBoss 存储库添加到 m2eclipse,没有最新的 Hibernate 版本

发布于 2024-08-29 06:37:40 字数 2486 浏览 5 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

放赐 2024-09-05 06:37:40

谢谢帕斯卡,但我刚刚弄清楚问题出在哪里。 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 :(

死开点丶别碍眼 2024-09-05 06:37:40

nexus 索引很可能已经过时,只需手动添加依赖项:

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

我不会使用配置文件,而只是将存储库添加到 pom 顺便说一句(但这是个人选择):

<repositories>
  <repository>
    <id>jboss-public-repository-group</id>
    <name>JBoss Public Repository Group</name>
    <url>http://repository.jboss.org/nexus/content/groups/public</url>
  </repository>
</repositories>

The nexus index is very likely out of date, just add the dependency manually:

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

I wouldn't use a profile but simply add the repository to the pom BTW (but this is a personal choice):

<repositories>
  <repository>
    <id>jboss-public-repository-group</id>
    <name>JBoss Public Repository Group</name>
    <url>http://repository.jboss.org/nexus/content/groups/public</url>
  </repository>
</repositories>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文