【问题标题】:How can I proxy google maven using nexus?如何使用 nexus 代理 google maven?
【发布时间】:2017-08-17 02:54:03
【问题描述】:

我想使用nexus代理google maven,我使用urlhttps://dl.google.com/dl/android/maven2/作为远程存储位置,存储库状态是In Service-Remote Automatically Blocked and Unavailable。我尝试设置 Auto Blocking Enabled false,但问题仍然存在。

【问题讨论】:

  • 我已经更新到 Nexus Repo 3,问题解决了。

标签: maven nexus


【解决方案1】:

这是 Nexus Repo 2 中的一个已知错误:

https://issues.sonatype.org/browse/NEXUS-9508

但是,您的解决方法应该有效。尝试针对 repo 运行构建,我们的支持人员说您可能正在尝试浏览远程或检查索引选项卡,这在这种情况下将不起作用。

如果您不使用 Nexus Repo 3,您可以试用它,我很想看看您的里程数。如果这有帮助,请告诉我!

【讨论】:

    【解决方案2】:

    我有同样的问题,解决方案不是使用“公共”回购,而是使用特定的回购,如“http://nexusrepo/repository/Google”而不是“http://nexusrepo/repository/public”,并在 build.gradle 添加此条目

    maven{ url = "http://nexusrepo/repository/Google" }

    我正在使用版本:

    Nexus Repository ManagerOSS 3.0.0-03

    【讨论】:

      猜你喜欢
      • 2021-08-09
      • 2011-04-15
      • 2013-06-05
      • 1970-01-01
      • 2015-05-18
      • 2011-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多