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

发布于 2024-12-07 23:43:56 字数 1333 浏览 0 评论 0 原文

我正在尝试让 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 结果是相同的。

有人遇到这个依赖问题吗?

I'm trying to get arquillian run with jboss 7. I have downloaded the Quickstart projects from JBoss site, at http://www.jboss.org/jbossas/downloads, but I'm having troubles in running the Arquillian tests in the kitchensink project.

Maven is not able to find:

org.jboss.arquillian:arquillian-bom:pom:1.0.0.CR1

When I run

mvn clean test -Parq-jbossas-managed

Maven allways fail to find the artifact:


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

I'm using Maven 3, though with maven 2 the result is the same.

is Anyone running into this dependency problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

用心笑 2024-12-14 23:43:56

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.

笨死的猪 2024-12-14 23:43:56

我也有这个依赖问题,尽管我已经像 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 复制到我的本地存储库我自己,但其他想要构建我的项目的人也必须这样做。

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:

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

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

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)

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文