I'm using maven 2.2.1 and I sucessfully ran:
mvn -B release:clean release:prepare
But get the error message 'No SCM URL was provided to perform the release from' when I run:
mvn release:perform
My pom.xml have the scm tags defined correctly:
<scm>
<url>file:///C:/tmp/svnrepo/myproj/trunk</url>
<connection>scm:svn:file:///C:/tmp/svnrepo/myproj/trunk</connection>
<developerConnection>scm:svn:file:///C:/tmp/svnrepo/myproj/trunk</developerConnection>
</scm>
It is possible to rerun a maven release:perform
by creating a manually edited release.properties
file in the root folder. This file should define these two properties: scm.url
and scm.tag
. Here a possible example:
scm.url=scm:git:https://github.com/owner/repo.git
scm.tag=v1.0.4
With this file it is possible to redo a release:perform
task.
Inspired by this answer.