January 08, 2008

Maven release:prepare not prompting for version

I ran into a particular annoying bug the other day when trying to use the Maven release plugin. The goal release:prepare is suppose to prompt you for the version you wish to give the release (the version in the poms from x-SNAPSHOT to a new version). However, on my machine I was never prompted by the plugin.

After spending more time than I care to admit trying to resolve this issue I was finally able to trace it to my ~/.m2/settings.xml file. My settings.xml file included a few empty nodes, after removing these my issue went away.

1 comment:

Unknown said...

I had the same issue. Thanks for the tip.