Maven私有仓库: 发布release版本报错:Return code is: 400, ReasonPhrase: Repository does not allow upd ating assets: maven-releases.

时间:2024-01-09 23:49:44

今天在将一个maven组件由SNAPSHORT升级为正式版本1.0.0,然后执行发布:

mvn clean deploy -pl ielong-common -am -DskipTests,

报错:Return code is: 400, ReasonPhrase: Repository does not allow upd ating assets: maven-releases.

经排查发现是因为重复发布导致的。maven私有仓库默认不允许重复部署。

进入maven-releases的配置界面,将Deployment policy 由 Disable redeploy改为Allow redeploy

Maven私有仓库: 发布release版本报错:Return code is: 400, ReasonPhrase: Repository does not allow upd ating assets: maven-releases.