将第三方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
原创不易,完成人机校验,阅读全文
相关推荐
网络文章向maven中央仓库提交jar工作小总结【mysql】程序在连接mysql的时候错误提示:Path does not chain with any of the trust anchorsMAVEN【已解决】获取到的三方jar怎么引入到maven项目中?GIT项目支持rtsp、h264、h265等、rtmp等多种源,h5纯js播放(不依赖flash),不需要依赖nginx等第三方,低延迟淘宝客怎么将本地的jar添加到本地的mvn仓库中(TBK)??淘宝客记录工作小总结记录一次Status Code:400 Bad Request解决方案及打印错误原因工作小总结【已解决】连接PGSQL报错column “datlastsysoid“ does not exist Line1:SELECT DISTINCT datalastsysoid FROM pg_database经验分享【经验】使用http访问一个链接提示400的错误,但是在浏览器访问没问题(server returned HTTP Response code :400 fro URL:),怎么解决