maven deploy 已存在的包的时候出现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. -> [Help 1]

 

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

原因是 release 默认库是不允许重复部署的

 

修改图中配置就可以重复部署了

Deployment Policy:Allow Redeploy

你可能感兴趣的:(maven)