解決mavencommons-cli:commons-cli:jar:1.0 下載不下來的錯誤


使用maven進行項目構建的時候,出現pom.xml文件報commons-cli:commons-cli:jar:1.0 下載不下來;

解決方式:

 在maven倉庫中,http://mvnrepository.com/artifact/commons-cli/commons-cli/1.2;搜索對應的版本的commons-cli然后出現下圖的

將途中的代碼放置到pom.xml文件中,先將本地倉庫中的commons-cli文件夾刪除,然后再重新maven-->upadate project即可解決這個問題;

解決完這個問題之后,又出現了一個問題

Failure to transfer org.codehaus.plexus:plexus-utils:jar:3.0 from http://maven.aliyun.com/nexus/content/groups/public was cached in the local
repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced. Original error: Could not
transfer artifact org.codehaus.plexus:plexus-utils:jar:3.0 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): GET request of:
org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar from nexus-aliyun failed

想解決這個問題還是到maven中心倉庫找到對應的jar包,然后重新maven-->update project即可解決這個問題;

 


免責聲明!

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



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