maven打包到本地和私服

打包到本地:mvn install:install-file -Dfile=C:\Users\kris\Desktop\starter-canal-0.0.1-SNAPSHOT.jar -DgroupId=com.xpand -DartifactId=starter-canal -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar

打包到私服:mvn deploy:deploy-file -Dfile=C:\Users\kris\Desktop\starter-canal-0.0.1-SNAPSHOT.jar -DgroupId=com.xpand -DartifactId=starter-canal -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Durl=http://admin:admin123@localhost:8081/nexus/content/repositories/snapshots

posted @ 2020-06-05 15:32  *乐途*  阅读(645)  评论(0)    收藏  举报