问题
Blocked mirror for repositories: [snapshots (http://xxx/artifactory/gm-maven-vir, default, releases+snapshots)]
无法访问 Maven 3.8.1 http 仓库。
可能的解决方案:
- 检查 Maven settings.xml 是否不包含 http 仓库
- 检查 Maven pom 文件是否不包含 http 仓库 http://xxx/artifactory/gm-maven-vir
- 在 Maven settings.xml 中为 http://xxx/artifactory/gm-maven-vir 添加允许 http url 的镜像
- 在设置中将 Maven 降级到 3.8.1 或更早的版本
原因
高于 3.6.3 之后的版本不支持 http,只能https
解决方法,换低版本maven
https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/

然后下载下来到 idea 中

解决Maven3.8.1以上版本无法访问HTTP仓库的问题及降级策略,
文章讲述了Maven3.8.1及以上版本不再支持HTTP仓库,导致访问问题。可能的解决方案包括检查Maven设置、移除不必要的http仓库引用、在Mavensettings.xml中添加允许的镜像或降级至3.6.3版本。
1538

被折叠的 条评论
为什么被折叠?



