mvn release:prepare not committing changes to pom.xml

前端 未结 9 672
攒了一身酷
攒了一身酷 2020-11-28 05:11

I\'m trying to release a Jenkins plugin (stashNotifier) with Maven and face a problem with the release plugin.

mvn clean release:prepare

r

9条回答
  •  情歌与酒
    2020-11-28 05:35

    Similar issue, but I had this problem, using Jenkins Release Plugin and Gitlab:

    • First time it worked.
    • Second time it wouldn't commit.

    Turns out we had a typo in SCM config in our pom.xml, so the Project with typo got created on the first time. At the second time, Maven was accessing the outdated project and complained, not committing the changes.

提交回复
热议问题