zoukankan      html  css  js  c++  java
  • Maven项目使用阿里云的Maven库

    Maven项目下载一些jar包非常慢,有时候一个项目能下一个上午,因此可以考虑使用阿里云的Maven库,因为是国内的,所以下载速度非常酷

    单个项目使用阿里云的Maven库:

    pom文件中

        <!-- 阿里云maven仓库 -->
        <repositories>
            <repository>
                <id>public</id>
                <name>aliyun nexus</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
            </repository>
        </repositories>

    配置setting.xml,应用于所有项目:

    找到<mirror>标签

    <mirror>  
          <id>alimaven</id>  
          <name>aliyun maven</name>  
          <url>  
              http://maven.aliyun.com/nexus/content/groups/public/  
          </url>  
          <mirrorOf>central</mirrorOf>          
    </mirror>  
  • 相关阅读:
    Linux
    Other
    Linux
    VIM
    Linux
    其他
    Win10
    Win10
    IDE
    其他
  • 原文地址:https://www.cnblogs.com/jiangwz/p/9040781.html
Copyright © 2011-2022 走看看