其他分享
首页 > 其他分享> > 国内 maven 仓库镜像地址收集

国内 maven 仓库镜像地址收集

作者:互联网

修改配置文件 ~/.m2/settings.xml

<?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">

  <mirrors>
  
    <mirror>
      <id>aliyun-central</id>
      <mirrorOf>central</mirrorOf>
      <name>阿里云 maven 仓库镜像</name>
      <url>https://maven.aliyun.com/repository/public/</url>
    </mirror>
    
    <mirror>
      <id>huaweicloud</id>
      <mirrorOf>central</mirrorOf>
      <name>华为 maven 仓库镜像</name>
      <url>https://repo.huaweicloud.com/repository/maven/</url>
    </mirror>
    
  </mirrors>

</settings>

阿里云 maven 仓库镜像介绍:https://developer.aliyun.com/mvn/guide
华为开源镜像站:https://mirrors.huaweicloud.com/home

标签:central,https,仓库,maven,aliyun,镜像,com
来源: https://blog.csdn.net/u014229139/article/details/123593090