java - Maven 安装在 Eclipse 中不起作用并尝试其他计划
问题描述
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-
plugin:2.12.4:test (default-test) on project sample: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:surefire-booter:jar:2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter:jar:2.12.4: Could not transfer artifact org.apache.maven.surefire:surefire-booter:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
==================================================== ===============
我尝试计划。
- 首选项 > Maven > 用户设置重置
- 项目清理 > Maven 更新 > Maven 清理 > Maven 安装
- C:\Users\docan.m2\repository 文件夹删除并尝试第2步
解决方案
推荐阅读
- html - 有 x 轴滚动条时如何为 React Table 设置填充或边距
- ssis - 调用 SSIS 包作为视图
- c# - 当用户输入是字符串并且它应该是 int.tryparse 的整数时,如何阻止 c# 崩溃?
- r - Purrr 包将物种名称添加到 SSDM 中的每个输出名称
- c# - 使用 IComparer 获取 DateTime 大于的索引
- twitter - 使用授权标头中的承载令牌将用户添加到自定义受众
- r - 我是在处理一个充满数字、因子、字符还是什么的表格?
- php - 如何解决 php 联系表单中的 hCaptcha 验证错误
- angular - ngClass 结合多个条件?
- c - 堆栈结构与堆结构有什么区别?