【发布时间】:2011-05-29 12:25:51
【问题描述】:
每隔几周,我的 Hudson 构建就会失败,我会收到此错误输出。当我删除整个 .m2\repository\org\apache\maven\wagon\wagon-webdav 目录并在 repo 中启动另一个没有该依赖项的构建时,它解决了几周的问题。
我在 Hudson 之外从未见过此错误。我在 Maven 2.2.1 和 Hudson 1.378 上。
[INFO] Scanning for projects...
[INFO] artifact org.apache.maven.wagon:wagon-webdav: checking for updates from relrepo
[INFO] artifact org.apache.maven.wagon:wagon-webdav: checking for updates from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.maven.wagon:wagon-webdav:jar:RELEASE
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-webdav -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-webdav -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.my-company-project:1.0-SNAPSHOT
2) org.apache.maven.wagon:wagon-webdav:jar:RELEASE
【问题讨论】:
-
hudson 是在 64 位机器上运行 64 位 jvm 吗?