maven下載依賴jar包失敗處理方法--下載jar包到本地並安裝到maven倉庫中


所有maven依賴jar包地址:https://repo1.maven.org/maven2/org/apache/

 

1. 安裝jar包失敗報錯:

The following artifacts could not be resolved: commons-math3:commons-math3:jar:3.4.1, commons-pool2:commons-pool2:jar:2.3: Could not find artifact commons-math3:commons-math3:jar:3.4.1 

2. 安裝maven依賴jar包失敗后,在上面網址下載相應版本的jar包,比如:

org.apache.commons:commons-math3:3.4.1
org.apache.commons:commons-pool2:2.3

安裝jar到maven本地庫中:

mvn install:install-file -Dfile=d:/tmp/commons-math3-3.4.1.jar -DgroupId=commons-math3 -DartifactId=commons-math3 -Dversion=3.4.1 -Dpackaging=jar


mvn install:install-file -Dfile=d:/tmp/commons-pool2-2.3.jar -DgroupId=commons-pool2 -DartifactId=commons-pool2 -Dversion=2.3 -Dpackaging=jar


免責聲明!

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



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