常春藤通过Nexus代理 [英] Ivy via Nexus proxy

查看:98
本文介绍了常春藤通过Nexus代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Ivy中指定Maven中的mirror/mirrorOf之类的东西吗?我正在使用本地Maven代理(Nexus),并且需要该工具来指定Nexus代理应访问哪个父存储库.

does anyone knows how do I specify in Ivy something like mirror/mirrorOf in Maven? I'm working with a local Maven proxy (Nexus) and need the tool to specify which of the parent repositories should Nexus proxy be accessing.

在Maven中,我简单地做:

In Maven I do simply:

<mirrors>
  <mirror>
    <id>central-mirror</id>
    <mirrorOf>central</mirrorOf>
    <url>http://localhost:8081/content/repositories/central</url>
  </mirror>
</mirrors>

但是我在Ivy中找不到这种选择.

but I can't find this kind of option in Ivy.

推荐答案

我不认为这样的选择直接存在.您可以尝试实施,然后将Nexus存储库放在前面在该链中的中心.如果我了解链如何正确工作(如果这样的话会很大),Ivy会在集中之前检查您的存储库,因此只要您的存储库中有相关内容,就不需要了.

I don't think such an option exists directly. You could try implementing a chain, and put your Nexus repository ahead of central in that chain. If I understand how chains work correctly (that's a big if), Ivy will check your repository before central, so as long as your repository has the relevant contents central won't be needed.

有关详细信息,请参见教程.

See the tutorial for details.

这篇关于常春藤通过Nexus代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆