Friday, December 12, 2008

Workaround for mvn release:prepare failures

If you are using subversion 1.5.1+ like me you are likely to be frustrated by constant failures while attempting to use the Maven Release Plugin to prepare and perform releases.
There is a simple workaround for this which works like so:
  1. Run mvn release:prepare
  2. After if fails run svn update
  3. Run mvn release:prepare again
  4. Success!
The errror here appears to be caused by changes in subversion 1.5.1 so hopefully that will be fixed in the future.