<?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">
<!--本地仓库。该值表示构建系统本地仓库的路径。其默认值为${user.home}/.m2/repository。 -->
<localRepository>C:/Users/xxx/.m2/repository</localRepository>
<!--配置服务端的一些设置。如果局域网内部有nexus,需要管理项目jar包可配置 -->
<servers>
</servers>
<!--为仓库列表配置的下载镜像列表-->
<mirrors>
<!--给定仓库的下载镜像-->
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云central仓和jcenter仓的聚合公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>googlegoogle</id>
<mirrorOf>*</mirrorOf>
<name>阿里云google公共仓库</name>
<url>https://maven.aliyun.com/repository/google</url>
</mirror>
<mirror>
<id>gradleplugin</id>
<mirrorOf>*</mirrorOf>
<name>阿里云gradleplugin公共仓库</name>
<url>https://maven.aliyun.com/repository/gradle-plugin</url>
</mirror>
<mirror>
<id>aliyunspring</id>
<mirrorOf>*</mirrorOf>
<name>阿里云spring公共仓库</name>
<url>https://maven.aliyun.com/repository/spring</url>
</mirror>
<mirror>
<id>aliyunspringplugin</id>
<mirrorOf>*</mirrorOf>
<name>阿里云springplugin公共仓库</name>
<url>https://maven.aliyun.com/repository/spring-plugin</url>
</mirror>
<mirror>
<id>grailscore</id>
<mirrorOf>*</mirrorOf>
<name>阿里云grails公共仓库</name>
<url>https://maven.aliyun.com/repository/grails-core</url>
</mirror>
<mirror>
<id>apachesnapshots</id>
<mirrorOf>*</mirrorOf>
<name>阿里云apache公共仓库</name>
<url>https://maven.aliyun.com/repository/apache-snapshots</url>
</mirror>
<mirror>
<id>aliyunnexus</id>
<mirrorOf>central</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>clojars</id>
<mirrorOf>*</mirrorOf>
<name>清华大学公共仓库</name>
<url>https://clojars.org/repo</url>
</mirror>
<mirror>
<id>clojars</id>
<mirrorOf>*</mirrorOf>
<name>maven公共仓库</name>
<url>https://repo1.maven.org/maven2/</url>
</mirror>
</mirrors>
</settings>
标签:xml,https,repository,settings,仓库,maven,aliyun,com
From: https://www.cnblogs.com/lhwsrq/p/17085974.html