首页 > 解决方案 > 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

==================================================== ===============

我尝试计划。

  1. 首选项 > Maven > 用户设置重置
  2. 项目清理 > Maven 更新 > Maven 清理 > Maven 安装
  3. C:\Users\docan.m2\repository 文件夹删除并尝试第2步

标签: javaeclipsemaven

解决方案


推荐阅读