问题场景 : jar包放在本地仓库idea maven还是爆红, 需要手动打包到本地仓库
前提 : 在jar包当前文件夹下执行打包命令
1 打包到本地仓库
mvn install:install-file -DgroupId= < groupId> -DartifactId=< artifactId> -Dversion= < version> -Dpackaging=jar -Dfile=jar包文件名.jar
2 打包到私服
mvn deploy:deploy-file -Dfile=jar包文件名.jar -DgroupId=< groupId> -DartifactId=< artifactId> -Dversion=< version> -Dpackaging=jar -Durl=私服url