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. -> [Help 1]
maven deploy 已存在的包的时候出现400错误
原因是 release 默认库是不允许重复部署的
修改图中配置就可以重复部署了
Deployment Policy:Allow Redeploy
Maven部署400错误解决
本文介绍了一个关于Maven部署过程中遇到的400错误问题及其解决方案。该错误通常发生在尝试向不允许重复部署的默认仓库进行部署时。文中提供了一种修改部署策略的方法,允许重复部署。
1487

被折叠的 条评论
为什么被折叠?



