如何把项目打包到本地maven仓库
2019-01-16 本文已影响0人
清泉_QingQuan
进入到对应的项目目录,执行如下命令:
mvn install -Dmaven.test.skip=true
出现如下信息就说明当前项目已经安装到相应的mvn仓库了
Installing /data/software/jenkins/jenkins_home/workspace/common-server-test/target/common-server.jar to /root/.m2/repository/com/wy/common/common-server/1.0.0-SNAPSHOT/common-server-1.0.0-SNAPSHOT.jar
Installing /data/software/jenkins/jenkins_home/workspace/common-server-test/pom.xml to /root/.m2/repository/com/wy/common/common-server/1.0.0-SNAPSHOT/common-server-1.0.0-SNAPSHOT.pom