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>
    
  • 相关阅读:
    【Anagrams】 cpp
    【Count and Say】cpp
    【Roman To Integer】cpp
    【Integer To Roman】cpp
    【Valid Number】cpp
    重构之 实体与引用 逻辑实体 逻辑存在的形式 可引用逻辑实体 不可引用逻辑实体 散弹式修改
    Maven项目聚合 jar包锁定 依赖传递 私服
    Oracle学习2 视图 索引 sql编程 游标 存储过程 存储函数 触发器
    mysql案例~tcpdump的使用
    tidb架构~本地化安装
  • 原文地址:https://www.cnblogs.com/JaxYoun/p/12699291.html
Copyright © 2011-2022 走看看