idea maven 拉取报错failed to transfer from http://0.0.0.0/ during a previous attempt

maven版本 3.9.1

原因: maven在3.9.1 的默认配置文件中增加了一组标签,如果仓库镜像是http 而不是https 就会被拦截禁止访问,而公司私服一般是http 而不支持https.

解决方案:
一、 注释掉maven里的这个默认拦截配置
在这里插入图片描述

二、IDEA配置
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_31426247/article/details/129715282