hellojinjie
V2EX  ›  问与答

怎么镜像 maven 的仓库?

  •  
  •   hellojinjie · Mar 11, 2016 · 2797 views
    This topic created in 3742 days ago, the information mentioned may be changed or developed.
    • 我们的开发环境是不通外网的;
    • 同时我们想使用 maven ;
    • Nexus OSS 好像只是一个代理,只有需要的时候,它才会去互联网下载相关的 jar 包。

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

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

    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.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 10:13 · PVG 18:13 · LAX 03:13 · JFK 06:13
    ♥ Do have faith in what you're doing.