配置Maven 阿里镜像

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

1、创建配置文件

配置Maven 阿里镜像

配置Maven 阿里镜像

2、配置阿里镜像

配置Maven 阿里镜像

 <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、刷新依赖

配置Maven 阿里镜像