MVN 推入中央仓库和本地仓库

1.MVN 推入中央仓库

mvn deploy:deploy-file
-DgroupId=com.huawei.gauss
-DartifactId=ZenithDriver
-Dversion=1.0.0 -Dpackaging=jar -Dfile=1.jar
-Drepository=D:\Root\workspace\repository\
--settings D:\Root\Workspace\repository\settings.xml

 

mvn deploy:deploy-file -DgroupId=cn.com.dhcc -DartifactId=common-queryComponent -Dversion=1.0.0  -Dpackaging=jar -Dfile=D:\lib\common-queryComponent-1.0.0.jar -Durl=http://localhost:8081/repository/maven-releases/ -DrepositoryId=maven-releases

mvn deploy:deploy-file -DgroupId=cn.com.dhcc -DartifactId=platform-notify -Dversion=3.0.4-RELEASE  -Dpackaging=jar -Dfile=D:\jar\platform-notify-3.0.4-RELEASE.jar -Durl=http://localhost:8081/repository/maven-releases/ -DrepositoryId=maven-releases

 

mvn deploy:deploy-file -DgroupId=cn.com.dhcc -DartifactId=platform-middleware-core -Dversion=3.0.4-RELEASE  -Dpackaging=jar -Dfile=D:\jar\platform-middleware-core-3.0.4-RELEASE.jar -Durl=http://localhost:8081/repository/maven-releases/ -DrepositoryId=maven-releases

 

2.MVN推入本地仓库

mvn install:install-file
-Dfile=D:\lib\ent-query-BO-0.0.1-SNAPSHOT.jar
-DgroupId=cn.com.dhcc
-DartifactId=ent-query-BO
-Dversion=0.0.1-SNAPSHOT
-Dpackaging=jar

posted @ 2022-11-11 09:15  城市幽灵  阅读(163)  评论(0编辑  收藏  举报