JBoss 7 快速入门中未解决的依赖关系 org.jboss.arquillian:arquillian-bom
我正在尝试让 arquillian 与 jboss 7 一起运行。我已经从 JBoss 站点下载了快速入门项目,网址为 http: //www.jboss.org/jbossas/downloads,但我在 kitchensink 项目中运行 Arquillian 测试时遇到了麻烦。
Maven 无法找到:
org.jboss.arquillian:arquillian-bom:pom:1.0.0.CR1
当我跑步时
mvn clean test -Parq-jbossas-managed
Maven 总是找不到工件:
Downloading: http://repo1.maven.org/maven2/org/jboss/arquillian/arquillian-bom/1.0.0.CR1/arquillian-bom-1.0.0.CR1.pom [INFO] Unable to find resource 'org.jboss.arquillian:arquillian-bom:pom:1.0.0.CR1' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.jboss.arquillian:arquillian-bom Reason: POM 'org.jboss.arquillian:arquillian-bom' not found in repository: Unable to download the artifact from any repository org.jboss.arquillian:arquillian-bom:pom:1.0.0.CR1 from the specified remote repositories: central (http://repo1.maven.org/maven2) for project org.jboss.arquillian:arquillian-bom
我使用的是 Maven 3,尽管使用 Maven 2 结果是相同的。
有人遇到这个依赖问题吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JBoss Maven 存储库中提供了依赖项
org.jboss.arquillian:arquillian-bom
依赖项。最好将 JBoss Maven 存储库的“jboss-public”组添加到您的 Maven settings.xml 中。文件,这样您就不需要将此存储库添加到每个项目 POM 中。The dependency
org.jboss.arquillian:arquillian-bom
dependency is available in the JBoss Maven repository. It is preferable to add the "jboss-public" group of the JBoss Maven repository to your Maven settings.xml file so that you do not need to add this repository to every project POM.我也有这个依赖问题,尽管我已经像 Vineet 建议的那样添加了 JBoss Maven 存储库。
arquillian-parent-jetty-1.0.0.CR1.pom 已从 JBoss 存储库正确下载:
但是 Maven 尝试从存储库中央下载 arquillian-bom,尽管它可以在 https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/arquillian/arquillian-bom/1.0.0.CR1/arquillian-bom-1.0.0。 CR1.pom
作为解决方法,我将 arquillian-bom-1.0.0.CR1.pom 复制到我的本地存储库我自己,但其他想要构建我的项目的人也必须这样做。
I have this dependency problem, too, although I've added the JBoss Maven repository like Vineet suggested.
arquillian-parent-jetty-1.0.0.CR1.pom is correctly downloaded from the JBoss repository:
But then Maven tries to download arquillian-bom from repository central, although it's available at https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/arquillian/arquillian-bom/1.0.0.CR1/arquillian-bom-1.0.0.CR1.pom
As workaround I copied the arquillian-bom-1.0.0.CR1.pom to my local repository myself but then everyone else who wants to build my project has to do that too.