【发布时间】:2014-04-23 23:12:27
【问题描述】:
我昨天安装并设置了 nexus 允许匿名访问,因为我可以从浏览器查看 repo 好的,无需任何登录,这是在红帽服务器上。
然后我从本地 maven 存储库中删除了一些我自己的 jar 文件,并将以下内容添加到我的 pom 文件的顶部:
<repositories>
<repository>
<id>projectX</id>
<name>projectX</name>
<url>http://testapp:8081/nexus/content/repositories/projectX/</url>
</repository>
当我现在在 Eclipse 中右键单击我的项目并选择 maven >> 更新项目时,它似乎永远不会转到我的 testapp 上的存储库并获取丢失的 jar 文件,而是我只是在 pom 中有项目引用问题和问题文件。
有谁知道我做错了什么?通过网络浏览器显示的 nexus 中的 repo 的 URL 是正确的,我可以将它从我的 pom 文件复制到我的浏览器并点击它。
谁能帮忙?
【问题讨论】:
标签: maven repository pom.xml nexus sonatype