将jar发布到本地maven和私服

发布本地仓库
mvn install:install-file -Dfile=D:\esoft-project\kjxa-demo\target\xxx-1.0-SNAPSHOT.jar -DpomFile=D:\esoft-project\kjxa-demo\pom.xml -DgroupId=com.kjxa.framework -DartifactId=kjxa-decrypt -Dversion=1.0-SNAPSHOT -Dpackaging=jar 
发布到私服
mvn deploy:deploy-file -Dfile=D:\maven\repository\com\aspose\aspose-words\18.6-jdk16\aspose-words-18.6-jdk16.jar -DgroupId=com.aspose -DartifactId=aspose-cells -Dversion=18.4.0718 -Dpackaging=jar -Durl=http://ip:port/nexus/repository/maven-public/ -DrepositoryId=maven-public

posted @ 2020-09-30 10:03  生活无限美  阅读(170)  评论(0编辑  收藏  举报