工作小总结

将第三方jar包提交私有仓库错误:400 Repository version policy: SNAPSHOT does not allow version: 1.1

背景:在开发过程中,需要将第三方的jar提交的自己的私服仓库中。执行的命令:语法:mvndeploy:deploy-file -Dfile=jar全路径-DgroupId=groupId-DartifactId=artifactId-Dversion=版本-Dpackaging=jar-Durl=私服仓库地址 -DrepositoryId=snapshots实际应用例如:mvn

背景:

在开发过程中,需要将第三方的jar提交的自己的私服仓库中。执行的命令:

语法:

mvn deploy:deploy-file  -Dfile=jar全路径 -DgroupId=groupId -DartifactId=artifactId -Dversion=版本 -Dpackaging=jar -Durl=私服仓库地址  -DrepositoryId=snapshots

实际应用例如:

mvn deploy:deploy-file  -Dfile=C:\export\kaigejava.jar -DgroupId=com.kaigejava-DartifactId=my-test-jar  -Dversion=1.1 -Dpackaging=jar -Durl=http://192.168.1.1/repository/maven-snapshots/ -DrepositoryId=snapshots

执行后错误信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to

原创不易,完成人机校验,阅读全文

相关推荐