【发布时间】:2010-09-14 00:30:28
【问题描述】:
我正在尝试构建一个 maven 项目来测试一些测试软件 - Arquillian。
我设置了 nexus 并将 jboss 存储库添加到公共组的底部。
当我运行mvn test 时,我收到此错误:
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 存储库,它肯定是 there。
但是,当我导航到我的本地 nexus 公共组时,它不存在。
我该如何解决这个问题?这个问题的原因是什么?我对此感到困惑,因为我更习惯于使用 ant+ivy。
mvn 的完整输出是here。
【问题讨论】:
-
不确定这是否重要,在我当地的 nexus 组的排序中,maven central 高于 java.net m2。 Maven 中心有一个 org/sun/istack/ 包,但 istack-commons-runtime 不存在。
标签: testing maven-2 nexus dependency-management