Alex Rivera | Logout

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

Asked 2012-07-16T13:42:55.677
24

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>
Edit
Report

1 Answer

9

Looks like I did a mvn -DdryRun=true release:perform and this had deleted the release.properties file from the prepare stage.

So I add the -DconnectionUrl to the command to provide url of the tag

answered 2012-07-16T13:59:17.723

Your Answer