Maven 配置阿里云镜像教程

1.下载一个maven的压缩包并解压。

2.然后找到maven的配置文件,位于conf目录下,添加aliyun的镜像mirror

3.通过搜索快捷键找到mirror,定位到这个位置 

 

  <mirrors>
 
         
	<mirror>
		 <id>nexus-aliyun</id>
		 <mirrorOf>*</mirrorOf>
		 <name>Nexus aliyun</name>
		 <url>http://maven.aliyun.com/nexus/content/groups/public</url>
	</mirror>
 
 </mirrors>  

 4.另外,还需要注意依赖下载到本地的文件位置,不要在不存在的磁盘中

猜你喜欢

转载自blog.csdn.net/qq_59059632/article/details/134759281