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

mvn release:branch fails on Windows to commit changed pom in branch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.3.2, 2.5
    • 2.5.3
    • branch
    • None

    Description

      I have tried this with 2.5 version ... also with 1.9 git:scm dependency.

      I guess it has to do with the WARNINGS shown below. Git itself works without any problems.

      The branch is created, but still has the version 1.0-SNAPSHOT. It should have the version 1.0-copy-SNAPSHOT. The version was correct updated in the pom.xml.branch has the correct version information (which I can see with -DdryRun=true)

      Following command fails to commit the "next pom" into the branch:

      mvn  release:branch -DbranchName=copy-repo-settings -DremoteTagging=false -DupdateBranchVersions=true -DupdateWorking
      CopyVersions=false -DreleaseVersion=1.0-copy-SNAPSHOT
      
      .....
      [INFO] --- maven-release-plugin:2.5:branch (default-cli) @ monthly-update ---
      [INFO] Verifying that there are no local modifications...
      [INFO]   ignoring changes on: **\release.properties, **\pom.xml.next, **\pom.xml
      .releaseBackup, **\pom.xml.backup, **\pom.xml.branch, **\pom.xml.tag
      [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git status --porcelain ."
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Transforming 'montly DevOpts Plugin'...
      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git status --porcelain ."
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [WARNING] Ignoring unrecognized line: ?? monthly-update/pom.xml.releaseBackup
      [INFO] Branching release with the label null...
      [INFO] Executing: cmd.exe /X /C "git branch copy-repo-settings"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git push https://user:pass@dev/git/devopts.git refs/heads/copy-repo-settings"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git ls-files"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Transforming 'montly DevOpts Plugin'...
      [INFO] Checking in modified POMs...
      [INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [INFO] Executing: cmd.exe /X /C "git status --porcelain ."
      [INFO] Working directory: D:\Dev\projects\git\devopts\monthly-update
      [WARNING] Ignoring unrecognized line: ?? monthly-update/pom.xml.releaseBackup
      [INFO] Release preparation complete.
      [INFO] Cleaning up after release...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 11.853 s
      [INFO] Finished at: 2014-07-09T09:03:58+01:00
      [INFO] Final Memory: 11M/307M
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              waffel Thomas Wabner
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: