2014-07-15 190 views
0

當我嘗試做一個MVN部署我收到此錯誤:maven無法解決項目依賴關係?

[ERROR] Failed to execute goal on project cross-automation-config: Could not resolve dependencies for project com.desp.cross.commons:cross-automation-config:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [com.desp.qc:automation-commons-config:jar:0.0.7 (compile), com.desp.cross.commons:cross-automation-utils:jar:0.0.1-SNAPSHOT (compile)]: Failed to read artifact descriptor for com.desp.cross.commons:cross-automation-utils:jar:0.0.1-SNAPSHOT: Failure to find com.desp.cross.commons:cross-automation-commons:pom:0.0.1-SNAPSHOT in http://repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

到項目(跨自動化配置),我有這些相關

<dependency> 
    <groupId>com.desp.qc</groupId> 
    <artifactId>automation-commons-config</artifactId> 
</dependency> 
<dependency> 
    <groupId>com.desp.cross.commons</groupId> 
    <artifactId>cross-automation-utils</artifactId> 
</dependency> 

這個項目有一個父項目,我不考慮必須放在這裏。

我知道這是一個依賴性問題。我不明白的是,爲什麼eclipse可以下載這些依賴關係,沒有任何錯誤,並且maven不能運行。

你對發生了什麼有了解嗎?

+0

我已經檢查了settings.xml,這不是存儲庫中的問題 – jscherman

回答

0

看起來您的maven無法在您的本地存儲庫中找到此依賴關係。 您應該嘗試首先構建這兩個項目:automation-commons-configcross-automation-utils(如果彼此存在依賴關係,請小心)。