maven - 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 文件夹,强制它更新快照并从我的浏览器手动下载插件。这个问题的大多数答案都是关于代理问题的,但我没有使用代理。
解决方案
推荐阅读
- outlook-web-addins - Outlook 加载项,对话框 API 事件处理程序未触发
- python - Tensorflow 2 throwing ValueError: as_list() is not defined on an unknown TensorShape
- pytorch - 更改图像大小和范围
- mysql - PHP Query 没有返回正确的值
- laravel - 如何使用 Ansible 安装 Laravel
- python - 将多个 1D 数组附加到“空”2D 数组 - Python
- reactjs - 在我的 React 项目的 source-map-explorer 可视化中,“null”区域对应什么,为什么这么大?
- php - CakePHP REST API 基本路由
- html - 如何在电子邮件模板中使用蒙特塞拉特字体?
- javascript - 无法运行我的 React 应用程序,出现一些错误