使用Nexus设置缺少Maven依赖项 [英] Missing maven dependency using nexus setup

查看:381
本文介绍了使用Nexus设置缺少Maven依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个Maven项目以测试一些测试软件-Arquillian.

I am trying to build a maven project to test out some testing software - Arquillian.

我建立了联系,并将jboss存储库添加到了公共组的底部.

I setup nexus and added the jboss repositories to the bottom of the public group.

当我运行mvn test时,出现此错误:

When i run mvn test i get this error:

Missing:
----------
1) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.sun.istack -DartifactId=istack-commons-runtime -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jboss.arquillian.sandbox.showcase:arquillian-sandbox-showcase-jsf:jar:1.0.0-SNAPSHOT
        2) org.jboss.jbossas:jboss-as-client:pom:6.0.0.20100721-M4
        3) org.jboss.jbossas:jboss-as-iiop:jar:client:6.0.0.20100721-M4
        4) org.jboss.jbossts:jbossjts:jar:4.11.0.Final
        5) org.jboss.ws.native:jbossws-native-core:jar:3.3.0.CR1.SP2
        6) com.sun.xml.ws:jaxws-rt:jar:2.2
        7) com.sun.xml.ws:policy:jar:2.0-b01
        8) com.sun.istack:istack-commons-runtime:jar:1.1-SNAPSHOT

我检查了java.net maven 2存储库,它肯定是

I checked the java.net maven 2 repository and it is definately there.

但是,当我导航到本地本地公共组时,它不在那儿.

However when i navigate to my local nexus public group, it is not there.

我该如何解决此问题?而造成此问题的原因是什么?,因为我更习惯于使用ant + ivy,因此我对此感到不知所措.

How can i solve this problem? And what is the cause of this problem? I am in way over my head with this, as I am more accustomed to using ant+ivy.

mvn的完整输出是此处.

The full output from mvn is here.

推荐答案

最终是一个不好的依赖项.我必须手动添加它才能使其正常工作.糟透了!

Ended up being a bad dependency. I had to add it manually to get it all working. Terrible!

这篇关于使用Nexus设置缺少Maven依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆