2010-12-22 46 views
2

每隔几周我的Hudson构建失败,我得到这个错误输出。当我删除我的整个.m2 \ repository \ org \ apache \ maven \ wagon \ wagon-webdav目录并启动另一个没有依赖关系的版本时,它可以解决问题几个星期。Hudson失败Maven2构建零星 - 缺少webdav

我从来没有看到哈德逊以外的这个错误。我在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 
+0

哈德森运行64位jvm的64位机器上? – krosenvold 2010-12-22 18:09:09

+0

32位机器和jvm – Andy 2010-12-22 18:54:11

回答

3

您是否依赖RELEASE的工件版本?我不认为这是建议,它是少数功能之一,实际上是not supported in maven 3。你可以尝试取决于特定的版本号?这也将使你的构建更容易重现。

0

升级到maven3并确保您的所有插件都是最新版本。在插件和maven3中都存在大量的间歇性/暂时性问题。 hudson < - > m3问题可能尚未解决,因此您可能必须从插件开始。

0

你可以尝试执行mvn install -U。不过,我并不完全确定这是否仅影响SNAPSHOT版本。