完整Maven国内源配置(阿里源)全网最优方案,不服来辩

由于Maven国内下载速度太慢,所以将仓库源换为国内

但大多帖子(我找到的所有帖子)提供的阿里仓库源只有Central或者Public源

而像Spring Boot项目大多依赖还是会从repo.spring.io下载,还是很慢

于是在一番搜索后,发现阿里官方仓库服务站点:https://maven.aliyun.com/mvn/view

完整Maven国内源配置(阿里源)全网最优方案,不服来辩_第1张图片

此站点有许多不同国外源镜像的映射,所以本人将阿里提供的所有映射做了整理

完整的mirrors配置如下:



	
        aliyun-public
        *
        aliyun public
        https://maven.aliyun.com/repository/public
    

    
        aliyun-central
        *
        aliyun central
        https://maven.aliyun.com/repository/central
    

    
        aliyun-spring
        *
        aliyun spring
        https://maven.aliyun.com/repository/spring
    

    
        aliyun-spring-plugin
        *
        aliyun spring-plugin
        https://maven.aliyun.com/repository/spring-plugin
    

    
        aliyun-apache-snapshots
        *
        aliyun apache-snapshots
        https://maven.aliyun.com/repository/apache-snapshots
    

    
        aliyun-google
        *
        aliyun google
        https://maven.aliyun.com/repository/google
    

    
        aliyun-gradle-plugin
        *
        aliyun gradle-plugin
        https://maven.aliyun.com/repository/gradle-plugin
    

    
        aliyun-jcenter
        *
        aliyun jcenter
        https://maven.aliyun.com/repository/jcenter
    

    
        aliyun-releases
        *
        aliyun releases
        https://maven.aliyun.com/repository/releases
    

    
        aliyun-snapshots
        *
        aliyun snapshots
        https://maven.aliyun.com/repository/snapshots
    

    
        aliyun-grails-core
        *
        aliyun grails-core
        https://maven.aliyun.com/repository/grails-core
    

    
        aliyun-mapr-public
        *
        aliyun mapr-public
        https://maven.aliyun.com/repository/mapr-public
    

  

你可能感兴趣的:(完整Maven国内源配置(阿里源)全网最优方案,不服来辩)