You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Chaitanya Gogineni (JIRA)" <ji...@codehaus.org> on 2010/11/17 16:53:05 UTC

[jira] Created: (MRELEASE-615) release:branch and release:perform overwrites existing branch/version

release:branch  and release:perform overwrites existing branch/version
----------------------------------------------------------------------

                 Key: MRELEASE-615
                 URL: http://jira.codehaus.org/browse/MRELEASE-615
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: branch
            Reporter: Chaitanya Gogineni


Create a branch from the trunk using command 
mvn -DdevelopmentVersion=0.0.3-SNAPSHOT -DbranchName=testBranch release:branch

The above command creates a branch under svn/branches/testBranch. then perform a release

mvn release:prepare release:perform with release version 1.0.0

Creates artifacts with version 1.0.0 and uploads them to the repository.


I run the same command again the next day 
mvn -DdevelopmentVersion=0.0.3-SNAPSHOT -DbranchName=testBranch release:branch
mvn release:prepare release:perform

It overwrites the files in the existing branch svn/branches/testBranch and also overwrites the existing released artifacts in the repository.

The release:branch should thrown an error saying branch with the name already exists or there should be an overwrite parameter (with default false) to indicate if we want to overwrite. 

Error should be thrown if the release version for artifacts already exists in the repository. This check should happen under release:prepare phase.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira