[ 
https://jira.codehaus.org/browse/MRELEASE-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MRELEASE-615.
-----------------------------------

    Resolution: Won't Fix

Please refer to 
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
 if you're wondering why this issue was closed out.

> release:branch  and release:perform overwrites existing branch/version
> ----------------------------------------------------------------------
>
>                 Key: MRELEASE-615
>                 URL: https://jira.codehaus.org/browse/MRELEASE-615
>             Project: Maven 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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to