2010-12-22 42 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版本。

相關問題