【问题标题】:Teamcity: Update local maven repository on build server from NexusTeamcity:从 Nexus 更新构建服务器上的本地 maven 存储库
【发布时间】:2011-07-07 10:26:05
【问题描述】:

我正在使用 Teamcity 来构建 基于 Maven 的 Java 项目

我最近在我的 Nexus Repository Manager 中添加了一个第三方工件。现在,当我构建项目时,我收到以下错误:

[core:project1] Failed to execute goal on project project1: Could not resolve dependencies for project core:project1:jar:1.0.0: Failure to find com.oracle:ojdbc:jar:11.2.0.2.0 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

谁能告诉我如何FORCE更新我的构建服务器上的本地存储库缓存?这和 Maven settings.xml 有关吗?

【问题讨论】:

    标签: maven teamcity nexus dependency-management


    【解决方案1】:
    【解决方案2】:

    我认为,您真正的麻烦在于公共组 (nexus) 没有从第三方聚合工件。

    解决方案是将第三方工件的存储库添加到 settings.xml 或创建一个不同的组,该组也将提供 您的第三方工件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-21
      • 2020-08-14
      • 1970-01-01
      • 2012-03-02
      • 1970-01-01
      • 1970-01-01
      • 2018-02-09
      • 2021-12-27
      相关资源
      最近更新 更多