maven install 时报错

Zeromiki 发布于 2018/09/12 07:34
阅读 249
收藏 0

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project taotao-common: 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🏺2.12.4 -> org.apache.maven.surefire:surefire-booter🏺2.12.4: Failed to read artifact descriptor for org.apache.maven.surefire:surefire-booter🏺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

加载中
0
Z
Zeromiki

很奇怪,用eclipse报错,用命令行又可以了

0
那里飘香
那里飘香

这是Eclipse的bug多install几下就好了,如果几下还没好就是代码有问题,我的代码一般是install第二次才会success

Z
Zeromiki
我install很多次了都不行,用命令行就可以
0
那里飘香
那里飘香

看看Eclipse的maven的设置

0
王再壮

ecplise 中  window-preferences-maven-installations配置一下maven路径。

user settings 中设置一下引用的settings.xml文件

返回顶部
顶部