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

猜你喜欢

转载自www.cnblogs.com/yang1018/p/11771791.html
今日推荐