maven无法解决项目依赖关系?

时间:2014-07-15 14:37:31

标签: eclipse maven dependencies resolve

当我尝试进行mvn部署时,我收到此错误:

[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不能

您对发生的事情有所了解吗?

1 个答案:

答案 0 :(得分:0)

看起来您的maven无法在本地存储库中找到此依赖项。 您应该首先尝试构建这两个项目:automation-commons-configcross-automation-utils(如果相互依赖,请小心)。