maven, Uncategorized, version control system

Workaround for mvn release:prepare scm tag bug

I’ve had some problems releasing my components using the mvn release:prepare plugin for some time now. Since this used to work before I was convinced that this was project specific and caused by some dependency or plugin conflict. However this was not the case. It turns out that this is a problem with maven 2 and subversion.

I’m using the 2.1.0 version of maven and version 1.5.8, Build 15348 of Subversion. The problem occurs at the end of the release:prepare process when the plugin is to tag subversion. This is the error message that I get is something like this:

[INFO] Unable to tag SCM
 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: File '/CreditCheck/tags/creditcheck-root-2.0/fitnesse/pom.xml' already exists

The work-around for this is really simple. The following two commands will complete the tag of the version to release and update the scm:

  1. svn up
  2. mvn release:prepare -Dresume

SCM-406 on contains an extensive discussion about and around this bug.


One thought on “Workaround for mvn release:prepare scm tag bug

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s