阿里云Maven仓库地址setting配置
程序员文章站
2022-06-29 16:10:49
...
<?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:\repository</localRepository>
<mirrors>
<!--
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>aliyun</id>
<name>aliyun Maven</name>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
</profiles>
</settings>
<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:\repository</localRepository>
<mirrors>
<!--
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>aliyun</id>
<name>aliyun Maven</name>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
</profiles>
</settings>
推荐阅读
-
maven多仓库配置 公司仓库和阿里仓库
-
maven添加阿里云镜像与常用配置
-
Idea配置Maven阿里云镜像加速的实现
-
快使用阿里云的maven仓库(转) mvnjava
-
关于MAVEN的配置、在eclipse的使用以及阿里云镜像的配置
-
Eclipse Maven仓库阿里云镜像配置
-
Eclipse配置Maven的本地仓库和阿里云镜像
-
Eclipse自带Maven插件添加阿里云maven仓库(阿里云镜像)
-
Maven 仓库 修改镜像为阿里云*仓库镜像 eclipse配置 Spring Boot 项目配置
-
Maven的安装及配置、Maven在Eclipse中的配置,Maven 仓库阿里云镜像配置