开发者社区> 问答> 正文

maven install 时报错?报错

[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

展开
收起
爱吃鱼的程序员 2020-06-06 15:16:54 571 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>很奇怪,用eclipse报错,用命令行又可以了</p>
    
                    
    
                        <p>这是Eclipse的bug多install几下就好了,如果几下还没好就是代码有问题,我的代码一般是install第二次才会success</p>
    
                    
    
                            我install很多次了都不行,用命令行就可以
                        
    
                        <p>看看Eclipse的maven的设置</p>
    
                    
    
                        <p>ecplise 中  window-preferences-maven-installations配置一下maven路径。</p>
    

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

    2020-06-06 15:17:08
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载