【问题标题】:maven could not resolve project dependencies?maven 无法解决项目依赖关系?
【发布时间】:2014-09-05 19:35:32
【问题描述】:

当我尝试进行 mvn deploy 时,出现此错误:

[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

进入项目(cross-automation-config)我有这些依赖项

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

你知道发生了什么吗?

【问题讨论】:

  • 我已经检查了 settings.xml 并且不是存储库的问题

标签: eclipse maven dependencies resolve


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2021-08-24
    • 1970-01-01
    • 1970-01-01
    • 2022-10-04
    • 2019-12-14
    • 2017-07-04
    • 2016-03-10
    相关资源
    最近更新 更多