maven 添加本地jar

mvn install:install-file 
-Dfile=jar包本地地址
-DgroupId=
-DartifactId=
-dversion=
-Dpackaging=jar
将jar发送到中央仓库  需要权限 在setting.xml的servers中配置
mvn deploy:deploy-file 
-Dmaven.test.skip=true 
-DgroupId=
-DartifactId=
-Dversion=
-Dpackaging=jar 
-Dfile=jar包本地地址
-Durl=http://x.x.x.x:xxxx/repository/3rd-party/(中央仓库地址)
-DrepositoryId=3rd-party

 

posted @ 2019-10-31 16:05  石洋  阅读(120)  评论(0编辑  收藏  举报