【发布时间】:2012-08-05 05:20:06
【问题描述】:
我在我的 pom 中添加了两个存储库:
<repositories>
<repository>
<id>objectify-appengine</id>
<url>http://objectify-appengine.googlecode.com/svn/maven</url>
</repository>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
</repository>
</repositories>
但是对于除 jboss 之外的所有依赖项都得到“缺少工件...”。(无法从中心和对象化获取依赖项)
尝试将存储库添加到 settings.xml。但是没有效果。 怎么了?
【问题讨论】:
-
mvn help:effective-pom在存储库中显示什么? -
在有效的 pom 中获取额外的repo1.maven.org/maven2。问题出在 jboss 中:我已将 url 更改为 repository.jboss.org/nexus/content/groups/public-jboss 并将“.Final”添加到 verison。现在没问题。谢谢。
-
最好开始使用存储库管理器,因为在 pom 中您应该避免存储库定义。
-
写下您的解决方案作为答案或关闭您的帖子。
标签: maven jboss repository