2016-04-22 53 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解決了我們的問題。