今天在將一個maven組件由SNAPSHORT升級爲正式版本1.0.0,而後執行發佈:maven
mvn clean deploy -pl ielong-common -am -DskipTests,spa
報錯:Return code is: 400, ReasonPhrase: Repository does not allow upd ating assets: maven-releases.3d
經排查發現是由於重複發佈致使的。maven私有倉庫默認不容許重複部署。code
進入maven-releases的配置界面,將Deployment policy 由 Disable redeploy改成Allow redeployblog