首页 > 解决方案 > Maven 无法从中央存储库(或显然是本地存储库)访问/传输

问题描述

当我尝试运行大多数 Maven 命令时,我收到此错误或非常类似的错误

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom: Received fatal alert: protocol_version -> [Help 1]

这最初是在使用 eclipse 时发生的,使用普通的 cmd 会产生同样的错误(在一个空白的新项目上也是如此)。

我尝试删除我的 .m2 文件夹,强制它更新快照并从我的浏览器手动下载插件。这个问题的大多数答案都是关于代理问题的,但我没有使用代理。

标签: maven

解决方案


推荐阅读