未解决的依赖org.jboss.arquillian:JBoss 7中的arquillian-bom快速入门

时间:2011-09-30 13:18:44

标签: maven jboss7.x jboss-arquillian

我正在尝试使用jboss 7进行arquillian运行。我已经从http://www.jboss.org/jbossas/downloads下载了JBoss站点的Quickstart项目,但是我遇到了在kitcheninkink项目中运行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但结果是一样的。

有人遇到这种依赖性问题吗?

2 个答案:

答案 0 :(得分:1)

JBoss Maven存储库中提供了依赖org.jboss.arquillian:arquillian-bom依赖关系。它最好是add the "jboss-public" group of the JBoss Maven repository to your Maven settings.xml file,因此您不需要将此存储库添加到每个项目POM。

答案 1 :(得分:1)

我也有这种依赖性问题,虽然我已经添加了像Vineet建议的JBoss Maven存储库。

arquillian-parent-jetty-1.0.0.CR1.pom已从JBoss存储库正确下载:

Downloading: https://repository.jboss.org/nexus/content/groups/public-jboss/org/jboss/arquillian/container/arquillian-parent-jetty/1.0.0.CR1/arquillian-parent-jetty-1.0.0.CR1.pom

但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下载

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)

作为解决方法,我自己将arquillian-bom-1.0.0.CR1.pom复制到我的本地存储库,但是其他想要构建我的项目的人也必须这样做。