I\'m trying to release a Jenkins plugin (stashNotifier) with Maven and face a problem with the release plugin.
mvn clean release:prepare
r
I just ran into this same problem, and from the other answers and comments, figured it was likely a bug in the release plugin itself.
In my case, I was using version 2.4 of the plugin with git in a new-and-mostly-empty project structured as follows:
my-repo.git/
module-parent/ # running the release from here
(module-child-1/) # except I hadn't created it yet
(module-child-2/) # except I hadn't created it yet
(The source code for this project can be seen here, before resolving the problem: my project with the same problem.)
Looking at the release notes for maven-release-plugin:2.4.1, it seemed like perhaps MRELEASE-830 had a shot of resolving it.
I'm not sure if that actually was the problem, but upgrading my project to 2.4.1 of the plugin resolved it for me. Hope it resolves the problem for you, too!