Could not transfer artifact xxxx from/to maven-default-http-blocker (http://0.0.0.0/):

时间:2025-04-25 16:23:56

背景

升级了idea之后,依赖包下载不成功,报错 Could not transfer artifact xxxx from/to maven-default-http-blocker (http://0.0.0.0/):

排查

之后发现:idea升级之后,maven也升级了,maven升级到3.8.1之后,其默认配置文件中增加了一组标签,如果仓库镜像是http 而不是https 就会被拦截禁止访问,我们公司的私有长裤是http.

解决

因我司私有仓库也支持https,所以将setting文件中的仓库地址改成https,解决.