【发布时间】:2013-08-16 17:32:44
【问题描述】:
我目前在尝试将另一个 Maven 项目(特别是 Aerospike)的依赖项添加到我的项目中时遇到问题。我已经在 Aerospike 项目上做了一个mvn install,所以在我的存储库中(在 Linux 上:~/.m2/repository/com/aerospike/aerospike-client/3.0.6)我看到了 aerospike-client-3.0.6.jar .lastUpdated 文件。但是,当我添加依赖项时
<dependency>
<groupId>com.aerospike</groupId>
<artifactId>aerospike-client</artifactId>
<version>3.0.6</version>
<scope>compile</scope>
</dependency>
进入我的项目并执行mvn install,它返回此错误:
[INFO] ------------------------------------------------------------------------
[INFO] Building in-memory database poc 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.aerospike:aerospike-client:jar:3.0.6 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.601s
[INFO] Finished at: Fri Aug 16 11:49:43 EDT 2013
[INFO] Final Memory: 18M/954M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project: Could not resolve dependencies for project: Failure to find com.aerospike:aerospike-client:jar:3.0.6 in http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group 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
提前致谢!
【问题讨论】:
-
请列出/树你在 ~/.m2/repository/com/aerospike/aerospike-client/3.0.6 中的内容。 (在 Windows 上是:C:\Users\\.m2\...)
-
我已经用详细的存储库位置更新了这个问题。谢谢
-
"直到 jboss-public-repository-group 的更新间隔已经过去或强制更新后才会重新尝试解析" - 您是否尝试过强制更新?从命令行运行时只需添加 -U。
-
林斯基,谢谢你的建议。我试过了,我得到了同样的错误。
-
在这种情况下,我通常会从存储库中手动删除有问题的版本。但是,我在该 repo repository.jboss.org/nexus/content/groups/public 中看不到任何 com/aerospike/aerospike-client 文件夹。你是怎么得到这种依赖的?
标签: linux maven-2 pom.xml maven-dependency-plugin aerospike