Why does Maven is looking in the wrong repo?

半腔热情 提交于 2019-12-10 10:35:56

问题


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>

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


回答1:


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).

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.

Instructions are available in Maven Indexes view.



来源:https://stackoverflow.com/questions/3032022/why-does-maven-is-looking-in-the-wrong-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!