maven 国内镜像

由于连接国外网站时网速特慢,为解决这个问题,os china 建立了一个maven 的私服。为了记忆,特将此记录。

<mirrors>
    <!-- mirror | Specifies a repository mirror site to use instead of a given
        repository. The repository that | this mirror serves has an ID that matches
        the mirrorOf element of this mirror. IDs are used | for inheritance and direct
        lookup purposes, and must be unique across the set of mirrors. | -->
    <mirror>
        <id>nexus-osc</id>
        <mirrorOf>central</mirrorOf>
        <name>Nexus osc</name>
        <url>http://maven.oschina.net/content/groups/public/</url>
    </mirror>
    <mirror>
        <id>nexus-osc-thirdparty</id>
        <mirrorOf>thirdparty</mirrorOf>
        <name>Nexus osc thirdparty</name>
        <url>http://maven.oschina.net/content/repositories/thirdparty/</url>
    </mirror>
</mirrors>

猜你喜欢

转载自mataszhang.iteye.com/blog/2296592