亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

運行mvn compile 報錯,怎么解決啊?求大神幫忙!!

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.537 s
[INFO] Finished at: 2018-08-15T17:14:33+08:00
[INFO] Final Memory: 9M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 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

正在回答

2 回答

在settings.xml 的<mirrors>里面加下面的鏡像試試

<mirror>

<id>Central</id>

<url>http://repo1.maven.org/maven2</url>

<mirrorOf>central</mirrorOf>

</mirror>


1 回復 有任何疑惑可以回復我~

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: 版本號換一個試試

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
項目管理利器——maven
  • 參與學習       173008    人
  • 解答問題       789    個

使用maven來構建和管理Java項目,從環境配置,到maven核心知識

進入課程

運行mvn compile 報錯,怎么解決啊?求大神幫忙!!

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號