“You don't have a SNAPSHOT project in the reactor projects list.” when using Jenkins Maven release plugin

依然范特西╮ 提交于 2019-11-28 18:30:30

You're trying to release an artifact that's not a snapshot. That means your artifact's version number is something like 3.0.3. That version number implies its already been released. You can't release a release. There would be no changes in between and therefore no point.

You're only supposed to release SNAPSHOT versions. That means your version number would be like 3.0.3-SNAPSHOT.

MariuszS

Jenkins workspace is not cleanup or you have FINAL version inside pom.xml. Jenkins has check-out strategy for cleaning up workspace.

More: Maven release plugin - SNAPSHOT project needed

Check-out Strategy options:

  • Emulate clean checkout by first deleting unversioned files/ignored files, as well as files/directories ignored by svn:ignore, then execute svn update.
  • Always check out fresh copy
  • Use svn update as much possible, with svn revert before update

Changing the check-out strategy to "Emulate clean checkout by first deleting unversioned files/ignored files, then svn update" did the trick for me.

Bump Up your Project POM file for from the previously built code base to a new version.

1.0.1-SNAPSHOT<version>1.0.1-SNAPSHOT</version>

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!