zoukankan      html  css  js  c++  java
  • 提高依赖下载速度

    配置方法

    找到maven的安装目录,conf文件夹下的setting.xml文件
    打开setting.xml文件,找到mirrors节点添加阿里镜像库地址:
     
        <!-- 阿里云仓库 -->  
        <mirror>  
            <id>alimaven</id>  
            <mirrorOf>central</mirrorOf>  
            <name>aliyun maven</name>  
            <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>  
        </mirror>  
      
        <!-- 中央仓库1 -->  
        <mirror>  
            <id>repo1</id>  
            <mirrorOf>central</mirrorOf>  
            <name>Human Readable Name for this Mirror.</name>  
            <url>http://repo1.maven.org/maven2/</url>  
        </mirror>  
      
        <!-- 中央仓库2 -->  
        <mirror>  
            <id>repo2</id>  
            <mirrorOf>central</mirrorOf>  
            <name>Human Readable Name for this Mirror.</name>  
            <url>http://repo2.maven.org/maven2/</url>  
        </mirror> 
         
        <mirror>
            <id>maven.net.cn</id>
            <name>oneof the central mirrors in china</name>
            <url>http://maven.net.cn/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
  • 相关阅读:
    每日日报40
    每日日报39
    每日日报38
    vue 0点定时网络请求
    js reduce
    时间选择器 element
    CTF-WEB:PHP 变量
    CTF-WEB:PHP 反序列化
    Java 异常类与捕获异常
    Java 面向对象:内部类
  • 原文地址:https://www.cnblogs.com/eason-d/p/7492138.html
Copyright © 2011-2022 走看看