mvn clean package -Pprod -Dmaven.test.skip=true
mvn deploy
上传第三方jar到私服
mvn deploy:deploy-file -DgroupId=org.projectlombok -DartifactId=lombok -Dversion=1.18.6 -Dpackaging=jar -Dfile=lombok-1.18.6.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.projectlombok -DartifactId=lombok -Dversion=1.18.6 -Dpackaging=jar -Dfile=lombok-1.18.6.jar -Durl=http://10.70.27.14:8081/repository/Snapshots/ -DrepositoryId=Snapshots 报错
上传到私服命令
mvn deploy:deploy-file -DgroupId=org.mybatis.spring.boot -DartifactId=mybatis-spring-boot-autoconfigure -Dversion=2.0.1 -Dpackaging=jar -Dfile=mybatis-spring-boot-autoconfigure-2.0.1.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.mybatis.spring.boot -DartifactId=mybatis-spring-boot-starter -Dversion=2.0.1 -Dpackaging=jar -Dfile=mybatis-spring-boot-starter-2.0.1.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.mybatis -DartifactId=mybatis-spring -Dversion=2.0.1 -Dpackaging=jar -Dfile=mybatis-spring-2.0.1.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.mybatis -DartifactId=mybatis -Dversion=3.5.1 -Dpackaging=jar -Dfile=mybatis-3.5.1.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.springframework.boot -DartifactId=spring-boot-starter-data-jpa -Dversion=2.1.4.RELEASE -Dpackaging=jar -Dfile=spring-boot-starter-data-jpa-2.1.4.RELEASE.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.springframework.boot -DartifactId=spring-boot-starter-jdbc -Dversion=2.1.4.RELEASE -Dpackaging=jar -Dfile=spring-boot-starter-jdbc-2.1.4.RELEASE.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=org.mybatis -DartifactId=mybatis-spring -Dversion=2.0.3 -Dpackaging=jar -Dfile=mybatis-spring-2.0.3.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
mvn deploy:deploy-file -DgroupId=com.sap -DartifactId=sapjco3-lib -Dversion=3.0 -Dpackaging=jar -Dfile=sapjco3-lib-3.0.jar -Durl=http://10.70.27.14:8081/repository/Releases/ -DrepositoryId=Releases
上传到本地仓库命令
mvn install:install-file -Dfile= -DgroupId= -DartifactId= -Dversion= -Dpackaging=
mvn install:install-file -Dfile=mybatis-spring-boot-starter-2.0.1.jar -DgroupId=org.mybatis.spring.boot -DartifactId=mybatis-spring-boot-starter -Dversion=2.0.1 -Dpackaging=jar
mvn install:install-file -Dfile=mybatis-spring-boot-autoconfigure-2.0.1.jar -DgroupId=org.mybatis.spring.boot -DartifactId=mybatis-spring-boot-autoconfigure -Dversion=2.0.1 -Dpackaging=jar
mvn install:install-file -Dfile=mybatis-spring-2.0.1.jar -DgroupId=org.mybatis -DartifactId=mybatis-spring -Dversion=2.0.1 -Dpackaging=jar
mvn install:install-file -Dfile=spring-boot-starter-data-jpa-2.1.4.RELEASE.jar -DgroupId=org.springframework.boot -DartifactId=spring-boot-starter-data-jpa -Dversion=2.1.4.RELEASE -Dpackaging=jar
mvn install:install-file -Dfile=spring-boot-starter-web-2.1.4.RELEASE.jar -DgroupId=org.springframework.boot -DartifactId=spring-boot-starter-jdbc -Dversion=2.1.4.RELEASE -Dpackaging=jar
mvn install:install-file -Dfile=HikariCP-3.4.2.jar -DgroupId=com.zaxxer -DartifactId=HikariCP -Dversion=3.4.2 -Dpackaging=jar
mvn install:install-file -Dfile=okhttp-3.10.0.jar -DgroupId=com.squareup.okhttp3 -DartifactId=okhttp -Dversion=3.10.0 -Dpackaging=jar
mvn install:install-file -Dfile=sapjco3-lib-3.0.jar -DgroupId=com.sap -DartifactId=sapjco3-lib -Dversion=3.0 -Dpackaging=jar