maven倉庫安裝第三方jar包
阿新 • • 發佈:2019-01-06
--安裝第三方jar包到本地倉庫 ----進入jar包所在目錄執行 mvn install:install-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dfile=fastjson-1.1.37.jar -Dpackaging=jar ----開啟cmd直接執行 mvn install:install-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpackaging=jar -Dfile=C:\my_java\授課資料\資料:maven【高階】\安裝第三方jar包\fastjson-1.1.37.jar --安裝第三方jar包到私服 --在settings配置檔案中新增登入私服第三方登入資訊 <server> <id>thirdparty</id> <username>admin</username> <password>admin123</password> </server> ----進入jar包所在目錄執行 mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpackaging=jar -Dfile=fastjson-1.1.37.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty ----開啟cmd直接執行 mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpackaging=jar -Dfile=C:\my_java\授課資料\資料:maven【高階】\安裝第三方jar包\fastjson-1.1.37.jar -Durl=http://localhost:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty