org.apache.maven.BuildFailureException: No SCM URL was provided to perform the release from

DarVar picture DarVar · Jul 16, 2012 · Viewed 25.7k times · Source

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>

Answer

Jmini picture Jmini · Aug 13, 2016

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.