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

今天在将一个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

posted on 2018-01-12 11:19  James.H.Fu  阅读(5232)  评论(0编辑  收藏  举报

导航