Maven 国内源配置(2019/2/14)

新年开工后要开始新的项目,但是发现一些项目的依赖没有在阿里仓库Central或Public源之中,项目依赖还是要在外网中下载,很慢、很烦······
所以一番查找后,替换为阿里官方仓库服务站点: https://maven.aliyun.com/mvn/...

Maven 国内源配置(2019/2/14)_第1张图片

具体操作

  1. 打开 ${maven_home}/conf/settings.xml
  2. 上面配置

    
        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 国内源配置(2019/2/14))