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

-サードパーティのログイン情報を追加して、Mavenの設定構成ファイルタブサーバーでプライベートサーバーにログインします

<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>

最初

jarパッケージが配置されているディレクトリを入力し、
mvn deploy:deploy-file -DgroupId = com.alibaba -DartifactId = fastjson -Dversion = 11.37 -Dpackaging = jar -Dfile = fastjson-1.1.37.jar -Durl =を実行します。 http:// localhost:8081 / nexus / content / repository / thirdparty / -DrepositoryId = thirdparty

二番目

cmdを開き、
mvn deployを直接実行します:deploy-file -DgroupId = com.alibaba -DartifactId = fastjson -Dversion = 11.37 -Dpackaging = jar -Dfile = C:\ my_java \ Teaching Materials \ data:maven [advanced] \ installサードパーティのjarパッケージ\ fastjson-1.1.37.jar-Durl = http:// localhost:8081 / nexus / content / repository / thirdparty / -DrepositoryId = thirdparty

おすすめ

転載: blog.csdn.net/he1234555/article/details/113853270