zoukankan      html  css  js  c++  java
  • 最新Maven阿里云仓库配置【亲测有效】

    由于阿里云的Mavne镜像已经做了https升级和仓库细化,以前的配置方式已失效,下面是最新的,可以全部复制以下xml配置文件,放到本地,也可只复制mirrors节点

    <?xml version="1.0" encoding="UTF-8"?>
    
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
      
      <!-- 本地仓库目录 -->
      <localRepository>D:mvn_repo</localRepository>
    
      <pluginGroups>
      </pluginGroups>
    
      <proxies>
      </proxies>
    
      <servers>
      </servers>
    
      <!--拷贝mirrors节点下的全部内容-->
      <mirrors>
    	<mirror>
    		<id>aliyun-public</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun public</name>
    		<url>https://maven.aliyun.com/repository/public</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-central</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun central</name>
    		<url>https://maven.aliyun.com/repository/central</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-spring</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun spring</name>
    		<url>https://maven.aliyun.com/repository/spring</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-spring-plugin</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun spring-plugin</name>
    		<url>https://maven.aliyun.com/repository/spring-plugin</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-apache-snapshots</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun apache-snapshots</name>
    		<url>https://maven.aliyun.com/repository/apache-snapshots</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-google</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun google</name>
    		<url>https://maven.aliyun.com/repository/google</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-gradle-plugin</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun gradle-plugin</name>
    		<url>https://maven.aliyun.com/repository/gradle-plugin</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-jcenter</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun jcenter</name>
    		<url>https://maven.aliyun.com/repository/jcenter</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-releases</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun releases</name>
    		<url>https://maven.aliyun.com/repository/releases</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-snapshots</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun snapshots</name>
    		<url>https://maven.aliyun.com/repository/snapshots</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-grails-core</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun grails-core</name>
    		<url>https://maven.aliyun.com/repository/grails-core</url>
    	</mirror>
    
    	<mirror>
    		<id>aliyun-mapr-public</id>
    		<mirrorOf>*</mirrorOf>
    		<name>aliyun mapr-public</name>
    		<url>https://maven.aliyun.com/repository/mapr-public</url>
    	</mirror>
      </mirrors>
    
      <profiles>
      </profiles>
    </settings>
    
  • 相关阅读:
    ERP专用术语解释
    今天在倉庫了解系統流程
    今天会见广州用友的SALER
    人生隨緣
    今天午会见天思的客人
    父亲有过目不忘的本事
    今天会见易科(Exact,荷兰)温先生
    奥莱公司发展前途不可限量
    想念父母
    上海女人果真了得
  • 原文地址:https://www.cnblogs.com/JaxYoun/p/12699291.html
Copyright © 2011-2022 走看看