【问题标题】:Proxy https://flywaydb.org/repo repository using Nexus OSS?使用 Nexus OSS 代理 https://flywaydb.org/repo 存储库?
【发布时间】:2016-08-16 04:34:50
【问题描述】:

我正在尝试使用 Nexus Repository OSS v2.13.0 代理 https://flywaydb.org/repo,因为我们依赖 flyway-sbt sbt 插件。

如果我添加插件,我可以很好地下载插件

resolvers += "Flyway" at "https://flywaydb.org/repo"

到 plugins.sbt

但我们希望使用本地 Nexus 存储库代理人工制品,因为我们不希望我们的构建依赖于我们无法控制的服务器。

但是,当我将服务器添加到 Nexus(使用 Maven2 作为提供程序和格式)时,Nexus 无法代理人工制品,并且在日志中出现以下错误:

[proxy-3-thread-5] admin org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "flywaydb.org" [id=flywaydb.org] threw a org.sonatype.nexus.proxy.ItemNotFoundException exception. Auto-blocking this repository to prevent further connection-leaks and known-to-fail outbound connections until administrator fixes the problems, or Nexus detects remote repository as healthy. - Cause(s): Remote peer of repository M2Repository(id=flywaydb.org) detected as unavailable.

如果有人能够让这个工作,我会很高兴。我们成功代理了其他几个外部存储库。

【问题讨论】:

    标签: sbt nexus flyway


    【解决方案1】:

    问题是我们使用旧的 Java 6 版本运行 Nexus。 Java 抛出了一个似乎与 SSL 通信有关的异常。使用 Java 8 运行 Nexus 为我们解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2017-01-02
      • 2014-08-21
      • 2014-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-12
      相关资源
      最近更新 更多