2016-04-22 52 views
1

我想代理https://flywaydb.org/repo使用Nexus Repository OSS v2.13.0,因为我们依靠flyway-sbt sbt插件。使用Nexus OSS的代理https://flywaydb.org/repo存储库?

我可以下载插件的罚款,如果我添加

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. 

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

回答

1

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