Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-615

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • branch
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gogineni Chaitanya Gogineni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: