切换阿里云Maven的仓库提升编译速度

星期六, 2022-01-08 | Author: Lee | JAVA-and-J2EE, linux | 621 views

1.更多配置可以可以参考阿里云云效 Maven https://developer.aliyun.com/mvn/guide

2.通常配置如下:修改Maven的settings.xml文件

	<mirrors>  
        <mirror>  
            <id>alimaven</id>  
            <mirrorOf>central</mirrorOf>  
            <name>aliyun maven</name>  
            <url>https://maven.aliyun.com/repository/public/</url>  
        </mirror>  
    </mirrors>

2.或者直接在pom.xml文件中更换

<repositories>
	<repository>
		<id>alimaven</id>
		<name>aliyun maven</name>
		<url>https://maven.aliyun.com/repository/public</url>
	</repository>
</repositories>

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/2250.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta