赞
踩
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. ->
原因是 release 默认库是不允许重复部署的
修改图中配置就可以重复部署了:Deployment Policy:Allow Redeploy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。