安裝Ambari2.7.3執行mvn versions:set -DnewVersion=2.7.3.0.0時報錯


就是執行這一步報錯,錯誤信息如下

[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.7:set (default-cli) on project ambari-metrics: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.7:set failed: Plugin org.codehaus.mojo:versions-maven-plugin:2.7 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:versions-maven-plugin:jar:2.7 -> org.apache.maven:maven-artifact:jar:2.2.1: Failed to read artifact descriptor for org.apache.maven:maven-artifact:jar:2.2.1: Could not transfer artifact org.apache.maven:maven-artifact:pom:2.2.1 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: 拒絕連接 (Connection refused) -> [Help 1]

 

打開下邊help1 那個網址大概意思就是jar包的問題,或者是網絡的問題。於是我找到了mavenjar包下載位置,找到了標綠的那個地方

刪除了整個version-maven-plugin文件夾,然后再次執行mvn versions:set -DnewVersion=2.7.3.0.0,成功!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM