当前位置:   article > 正文

Maven deploy 报已存在的包的时候出现400异常_maven 400

maven 400

maven deploy 已存在的包的时候出现 400 错误

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project PRIME_SMM_APIService: Failed to deploy artifacts: Could not transfer artifact com.prime.smm.apiservice:PRIME_SMM_APIService:jar:1.0.0 from/to PRIME-RELEASE (http://192.168.8.201:8081/nexus/content/repositories/PRIME-RELEASE/): Failed to transfer file: http://192.168.8.201:8081/nexus/content/repositories/PRIME-RELEASE/com/prime/smm/apiservice/PRIME_SMM_APIService/1.0.0/PRIME_SMM_APIService-1.0.0.jar. Return code is: 400, ReasonPhrase: Bad Request. ->
  • 1

原因是 release 默认库是不允许重复部署的
在这里插入图片描述
修改图中配置就可以重复部署了:Deployment Policy:Allow Redeploy
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/837095
推荐阅读
相关标签
  

闽ICP备14008679号