最快的 maven repository--阿里镜像仓库
微wx笑
2021-05-09【编程工具】
337
4
0关键字:
国内 最快的 maven repository 阿里 镜像 仓库
国内速度超快的maven repository
国内最好的maven repository
注意:maven repository 的配置使用有两种方式,我采用第一种方式,只需要修改 Maven 的配置文件,项目的配置文件不需要修改。
目录
国内速度超快的maven repository
国内最好的maven repository
注意:maven repository 的配置使用有两种方式,我采用第一种方式,只需要修改 Maven 的配置文件,项目的配置文件不需要修改。而第二种方式项目的配置文件也需要修改。
方式一:
修改maven根目录下的conf文件夹中的setting.xml文件,在 <settings> 节点下添加如下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | < profiles > < profile > < id >SunriseProfile</ id > < repositories > < repository > < id >alimaven</ id > < url >http://maven.aliyun.com/nexus/content/groups/public/</ url > < releases > < enabled >true</ enabled > </ releases > < snapshots > < enabled >false</ enabled > </ snapshots > </ repository > </ repositories > </ profile > </ profiles > < activeProfiles > < activeProfile >SunriseProfile</ activeProfile > </ activeProfiles > |
方式二:
第一步:修改maven根目录下的conf文件夹中的setting.xml文件,内容如下:
1 2 3 4 5 6 7 8 | < mirrors > < mirror > < id >alimaven</ id > < name >aliyun maven</ name > < url >http://maven.aliyun.com/nexus/content/groups/public/</ url > < mirrorOf >central</ mirrorOf > </ mirror > </ mirrors > |
第二步: pom.xml文件里添加
1 2 3 4 5 6 7 8 9 10 11 12 13 | < repositories > < repository > < id >alimaven</ id > < name >aliyun maven</ name > < url >http://maven.aliyun.com/nexus/content/groups/public/</ url > < releases > < enabled >true</ enabled > </ releases > < snapshots > < enabled >false</ enabled > </ snapshots > </ repository > </ repositories > |
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/toolbox/code/2021-05-09/660.html