ローカルウェアハウスとプライベートサーバーにパッケージをインストールするコマンド

-サードパーティの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:\ fastjson-1.1.37.jar


-サードパーティのjarパッケージをプライベートサーバーにインストールする

- ログインプライベートサーバーのサードパーティログイン情報を設定ファイル
<server>
<id> thirdparty </ id>に追加します
<username> admin </ username>
<password> admin123 </ password>
</ server>
---- enter
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:\ fastjson-1.1.37.jar -Durl = http:// localhost:8081 / nexus / content / repositories / thirdparty / -DrepositoryId = thirdparty

おすすめ

転載: www.cnblogs.com/zhian/p/12741878.html