maven仓库设置为阿里云仓库

maven仓库设置为阿里云仓库.

Posted by Shrmars Blog on June 18, 2022

官方配置参考

https://developer.aliyun.com/mvn/guide

maven settings.xml 文件中配置mirrors,配置完成后如下:

1
2
3
4
5
6
7
8
<mirrors>
  <mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
</mirrors>