配置Maven 阿里镜像

有时候使用maven导入一些依赖会很慢,因为他默认走的是国外的

1、创建配置文件

image

image

2、配置阿里镜像

image

 <mirror>
	 <!--This sends everything else to /public -->
	 <id>nexus-aliyun</id>
	 <mirrorOf>*</mirrorOf>
	 <name>Nexus aliyun</name>
	 <url>http://maven.aliyun.com/nexus/content/groups/public</url>
 </mirror>

3、刷新依赖

image

posted @ 2021-07-11 18:15  白豆五  阅读(46)  评论(0编辑  收藏  举报