Maven倉庫手動添加新jar包


1、登錄https://mvnrepository.com/,下載所需的相應jar包

2、win+R打開命令提示符 

3、輸入mvn install:install-file -Dfile=D:\commons-fileupload-1.3.3.jar -DgroupId=commons-fileupload -DartifactId=commons-fileupload -Dversion=1.3.3 -Dpackaging=jar

  Dfile:jar包的路徑  DgroupId、DartifactId、Dversion可以在下載jar包的頁面找到相應信息

  輸入命令時不要回車

4、安裝成功(build success)后在Eclipse的Window→show view→other中找到maven  repositories,打開Local repositories中的本地倉庫,右鍵點擊Rebuild Index重新建立倉庫索引

5、在項目的pom.xml中添加安裝好的jar包

轉載於:https://www.cnblogs.com/curricle/p/11087953.html

 

 
 


免責聲明!

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



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