• [Java] Maven 镜像仓库


    配置

    修改maven根目录下的conf文件夹中的setting.xml文件.

    阿里云

      <mirrors>
        <mirror>
          <id>alimaven</id>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>        
        </mirror>
      </mirrors>

    这个速度超快。

    OSChina

    <mirror>
          <id>CN</id>
          <name>OSChina Central</name>
          <url>http://maven.oschina.net/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>
    </mirror>

    谷歌 Google

        <mirror>
          <id>google-maven-central</id>
          <name>Google Maven Central</name>
          <url>https://maven-central.storage.googleapis.com</url>
          <mirrorOf>central</mirrorOf>
        </mirror>

    开源中国 - Nexus osc

        <mirror>
          <id>nexus-osc</id>
          <mirrorOf>*</mirrorOf>
          <name>Nexus osc</name>
          <url>http://maven.oschina.net/content/groups/public/</url>
        </mirror>

    更新频率据说是每日一次。

    Net.cn 

    <mirror>
        <id>net-cn</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://maven.net.cn/content/groups/public/</url>   
     </mirror>

    MvnRepository

    <mirror>
        <id>mvn-com</id>
        <mirrorOf>central</mirrorOf>
        <name>MVN Repository</name>
        <url>http://mvnrepository.com/</url>   
     </mirror>

    其它国外镜像

    ibiblio.org

    <mirror>  
         <id>ibiblio</id>  
         <mirrorOf>central</mirrorOf>  
         <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>  
         <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
    </mirror>  

     jboss

    <mirror>  
         <id>jboss-public-repository-group</id>  
         <mirrorOf>central</mirrorOf>  
         <name>JBoss Public Repository Group</name>  
         <url>http://repository.jboss.org/nexus/content/groups/public</url>  
    </mirror>

    repo2

    <mirror>
      <id>repo2</id>
      <mirrorOf>central</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://repo2.maven.org/maven2/</url>
    </mirror>

    uk.maven.org

    <mirror>
      <id>ui</id>
      <mirrorOf>central</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
     <url>http://uk.maven.org/maven2/</url>
    </mirror>
  • 相关阅读:
    python自定义排序
    flex 布局
    display: table-cell; 元素上下左右居中,子元素无宽高
    transform 方法 上下左右元素居中 子元素无宽高
    flex 方法上下左右居中 子元素无宽高
    兼容-02
    兼容
    jS辨别访问浏览器判断是android还是ios系统
    选项卡
    返回顶部
  • 原文地址:https://www.cnblogs.com/yangyxd/p/5996747.html
Copyright © 2020-2023  润新知