[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
很奇怪,用eclipse报错,用命令行又可以了
这是Eclipse的bug多install几下就好了,如果几下还没好就是代码有问题,我的代码一般是install第二次才会success
看看Eclipse的maven的设置
ecplise 中 window-preferences-maven-installations配置一下maven路径。
user settings 中设置一下引用的settings.xml文件