【发布时间】:2013-02-07 07:32:11
【问题描述】:
我对 jenkins 1.500 版有疑问。我正在尝试构建一个依赖于我的另一个项目的项目。 错误是:
[ERROR] Failed to execute goal on project projectname: Could not resolve dependencies for project projectname:jar:1.0.0: Failure to find reference-project:jar:1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
如果我通过控制台和 Maven 构建此项目,则整个项目构建成功。 我检查了存储库中的依赖 jar 文件,它在正确的位置。
Maven 有自己的存储库还是我错过了什么?
但在 Jenkins 系统设置下,我选择了“Default(~/.m2/repository)”,并没有在项目设置中勾选“使用自己的存储库”复选框。有什么想法吗?
更新 我为 jenkins 中的依赖项创建了一个额外的工作,并调用了 Maven 目标安装,然后一切正常。在此步骤之前,我通过 Console 和 mvn install 安装了依赖项。 为什么有区别? (我尝试了删除并重新安装给定的解决方案,但这没有帮助)
【问题讨论】: