提交jar或pom文件到git仓库
提交jar到本地仓库:
mvn install:install-file \ -Dfile=D:\service-4.1.3-RELEASE.jar \ -DgroupId=com.test \ -DartifactId=service \ -Dversion=4.1.3-RELEASE \ -Dpackaging=jar \ -DpomFile=E:\pom.xml
提交pom到本地仓库:
mvn install:install-file \ -Dfile=D:\service-4.1.3-RELEASE.pom \ -DgroupId=com.test \ -DartifactId=service \ -Dversion=4.1.3-RELEASE \ -Dpackaging=pom \ -DpomFile=E:\pom.xml
提交jar到远程仓库:
mvn deploy:deploy-file \ -DgroupId=com.test \ -DartifactId=parent.jar \ -Dfile=E:\Code\parent\2.2.5-RELEASE\parent-2.2.5-RELEASE.jar \ -Durl=http://192.168.37.189:7081/repository/maven-releases/ \ -DrepositoryId=nexus-releases \ -Dpackaging=jar \ -DpomFile=E:\Code\parent\pom.xml
提交pom到远程仓库:
mvn deploy:deploy-file \ -DgroupId=com.test \ -DartifactId=parent.pom \ -Dfile=E:\Code\parent\2.2.5-RELEASE\parent-2.2.5-RELEASE.pom \ -Durl=http://192.168.37.189:7081/repository/maven-releases/ \ -DrepositoryId=nexus-releases \ -Dpackaging=pom \ -DpomFile=E:\Code\parent\pom.xml