IDEA中已配置阿里镜像但maven无法下载jar包的问题及解决方法
作者:HeyWeCome 时间:2021-11-09 11:06:53
在网上拷贝的所有阿里云镜像比如:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
都不能解决我的问题,我的包里面一直出现.lastUpdated文件,后来我查看官网之后发现:阿里不再支持http下载,只支持https。
因此,先将maven镜像配置如下:
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
然后我还出现了一个问题,由于使用了HTTPS,存在着SSL证书验证的问题,因此我在IDEA中添加了一行配置:
配置如下:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
该配置用于忽略ssl证书的验证,然后我的maven终于可以丝滑下载了。
来源:https://blog.csdn.net/HeyWeCome/article/details/104543411
标签:IDEA,阿里,镜像,maven,jar包
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Java实现多文件上传功能
2023-08-02 12:52:02
SpringBoot整合Redis之编写RedisConfig
2023-08-29 02:35:57
Spring Cache手动清理Redis缓存
2023-11-29 02:49:52
消息中间件详解以及比较选择
2022-08-17 03:01:01
![](https://img.aspxhome.com/file/2023/8/62688_0s.jpg)
java生成图片验证码示例程序
2023-09-13 10:17:57
SpringBoot集成FTP与SFTP连接池流程
2021-12-27 12:22:26
![](https://img.aspxhome.com/file/2023/5/63055_0s.png)
java并发编程包JUC线程同步CyclicBarrier语法示例
2023-01-18 07:44:58
![](https://img.aspxhome.com/file/2023/7/63687_0s.png)
Android编程开发之TextView单击链接弹出Activity的方法
2023-08-06 18:27:11
![](https://img.aspxhome.com/file/2023/4/83544_0s.png)
netty pipeline中的inbound和outbound事件传播分析
2023-08-27 06:57:00
![](https://img.aspxhome.com/file/2023/5/58285_0s.png)
深入了解Hadoop如何实现序列化
2023-10-13 10:33:43
![](https://img.aspxhome.com/file/2023/8/62348_0s.png)
SpringBoot整合screw实现数据库文档自动生成的示例代码
2023-11-29 05:30:15
![](https://img.aspxhome.com/file/2023/9/60579_0s.png)
springboot远程debug调试全过程
2023-11-25 07:05:56
![](https://img.aspxhome.com/file/2023/7/60247_0s.png)
vscode+platformIO开发stm32f4的实现
2023-11-02 16:43:37
![](https://img.aspxhome.com/file/2023/9/105169_0s.png)
VS2019配置OpenCV时找不到Microsoft.Cpp.x64.user的解决方法
2023-07-01 01:57:36
![](https://img.aspxhome.com/file/2023/1/100301_0s.png)
MyBatis3源码解析之如何获取数据源详解
2023-12-06 02:23:08
![](https://img.aspxhome.com/file/2023/3/60903_0s.jpg)
SpringBoot2.0解决Long型数据转换成json格式时丢失精度问题
2022-10-31 16:56:24
![](https://img.aspxhome.com/file/2023/1/61521_0s.png)
学习Java内存模型JMM心得
2023-11-28 20:56:17
![](https://img.aspxhome.com/file/2023/4/59974_0s.png)
浅谈自定义校验注解ConstraintValidator
2023-07-06 03:10:53
![](https://img.aspxhome.com/file/2023/9/61529_0s.jpg)
详解Android的.aar文件生成方法以及使用技巧
2023-08-06 06:43:20
![](https://img.aspxhome.com/file/2023/9/85459_0s.jpg)
java实现的简单猜数字游戏代码
2023-06-17 22:56:22
![](https://img.aspxhome.com/file/2023/6/57606_0s.jpg)