为什么Maven看错了回购? [英] Why does Maven is looking in the wrong repo?

查看:117
本文介绍了为什么Maven看错了回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的项目获取最新的hibernate版本,为此我已将jboss repo添加到我的settings.xml中。

I'm trying to get the newest hibernate version for my project, for this purpose I've added the jboss repo into my settings.xml

 <repository>
   <id>jboss-releases</id>
   <url>http://repository.jboss.org/maven2</url>
 </repository>

但是当我从m2eclipse插件中进行搜索时,我只看到官方的maven repo的结果,为什么?为什么我看不到最新版本3.5.1?相反,只有3.3.2被显示

but when I do the depency search from my m2eclipse plugin I see only results from the official maven repo, why? Why I don't see the latest release 3.5.1? Instead only 3.3.2 is shown

推荐答案

Maven没有看到错误的存储库和依赖于hibernate 3.5.1 artifacts 可用于JBoss存储库(并得到解决)。

Maven isn't looking in the wrong repository and dependencies on hibernate 3.5.1 artifacts are available in the JBoss repository (and get resolved).

但是,m2eclipse很可能未配置为使用JBoss存储库的Nexus索引,并且您需要在m2eclipse安装中启用此索引。这可以从 Maven存储库视图中完成。因此,打开此视图,在JBoss存储库中展开项目库右键单击,然后选择启用最小索引启用完整索引

However, m2eclipse is very likely not configured to use the Nexus index of the JBoss repository and you need to enable this index in your m2eclipse installation. This can be done from the Maven Repositories view. So open this view, unfold Project Repositories and right-click on the JBoss repository and select either Enable Minimal Index or Enable Full Index.

说明在 Maven索引视图

这篇关于为什么Maven看错了回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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