V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hellojinjie
V2EX  ›  问与答

怎么镜像 maven 的仓库?

  •  
  •   hellojinjie · 2016-03-11 15:53:35 +08:00 · 2216 次点击
    这是一个创建于 2969 天前的主题,其中的信息可能已经有所发展或是发生改变。
    • 我们的开发环境是不通外网的;
    • 同时我们想使用 maven ;
    • Nexus OSS 好像只是一个代理,只有需要的时候,它才会去互联网下载相关的 jar 包。

    我在想的是怎么把 https://oss.sonatype.org/content/repositories/ 这个仓库完整的镜像下来啊,这样我就可以在开发环境中直接使用 maven 了。

    3 条回复    2016-03-17 15:30:01 +08:00
    a342191555
        1
    a342191555  
       2016-03-11 16:30:45 +08:00   ❤️ 1
    好像官网给的有教程,然而不会(没成功),于是就 wget -r 了,现在使用时表示稳定- -
    gangsta
        2
    gangsta  
       2016-03-11 16:49:10 +08:00   ❤️ 1
    私服?nexus 或者 archiva
    hellojinjie
        3
    hellojinjie  
    OP
       2016-03-17 15:30:01 +08:00
    看到这里有这么句话,就只好放弃这个想法了

    https://maven.apache.org/guides/mini/guide-mirror-settings.html

    The size of the central repository is increasing steadily To save us bandwidth and you time, mirroring the entire central repository is not allowed. (Doing so will get you automatically banned) Instead, we suggest you setup a repository manager as a proxy.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1519 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:54 · PVG 00:54 · LAX 09:54 · JFK 12:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.