2020 阿里云 Maven 配置

<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/>
  <interactiveMode/>
  <usePluginRegistry/>
  <offline/>
  <pluginGroups/>
  <servers/>
  <mirrors>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云公共仓库name>
     <url>https://maven.aliyun.com/repository/publicurl>
    mirror>
     <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云谷歌仓库name>
     <url>https://maven.aliyun.com/repository/googleurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云阿帕奇仓库name>
     <url>https://maven.aliyun.com/repository/apache-snapshotsurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云spring仓库name>
     <url>https://maven.aliyun.com/repository/springurl>
    mirror>
    <mirror>
     <id>aliyunmavenid>
     <mirrorOf>*mirrorOf>
     <name>阿里云spring插件仓库name>
     <url>https://maven.aliyun.com/repository/spring-pluginurl>
    mirror>
  mirrors>
  <proxies/>
  <profiles/>
  <activeProfiles/>
settings>

覆盖本地 Maven 的安装目录 .m2/setting.xml 文件即可。
转发于:https://zhuanlan.zhihu.com/p/71998219

你可能感兴趣的:(计算机,maven,阿里云)