阿里云仓库地址已经由http改成https
以前: http://maven.aliyun测试数据/repository/public
现在: https://maven.aliyun测试数据/repository/public
(1/3)完成的setings.xml配置如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<? xml version = "1.0" encoding = "UTF-8" ?> < settings > <!-- 本地仓库地址 --> < localRepository >D:\repository</ localRepository > < servers ></ servers > < pluginGroups ></ pluginGroups >
< mirrors > < mirror > < id >aliyunmaven</ id > < mirrorOf >*</ mirrorOf > < name >阿里云公共仓库</ name > < url >https://maven.aliyun测试数据/repository/public</ url > </ mirror > </ mirrors >
< profiles > <!-- 全局JDK1.8配置 --> < profile > < id >jdk1.8</ id > < activation > < activeByDefault >true</ activeByDefault > < jdk >1.8</ jdk > </ activation > < properties > < project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding > < maven测试数据piler.source >1.8</ maven测试数据piler.source > < maven测试数据piler.target >1.8</ maven测试数据piler.target > < maven测试数据piler测试数据pilerVersion >1.8</ maven测试数据piler测试数据pilerVersion > </ properties > </ profile > </ profiles >
</ settings > |
修改完成上面的内容后,为了使下载依赖更加流畅需要修改IDEA配置
(2/3)分别点击File--Settings 搜索框输入maven (如下图) 然后点击Importing ,在VM options for imorter 中输入配置:
1 |
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true |
(3/3)继续点击Maven--Runner ,在VM options 中输入配置:
1 |
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true |
最后Apply--OK 完成配置,尽情享受丝滑吧~~
到此这篇关于maven配置阿里云仓库的实现方法(2022年)的文章就介绍到这了,更多相关maven配置阿里云仓库内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!
原文链接:https://blog.csdn.net/idto315/article/details/122888893
查看更多关于maven配置阿里云仓库的实现方法(2022年)的详细内容...