Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.3.2, 2.5
-
None
-
git version 1.9.4.msysgit.0;
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:5
2+01:00)
Maven home: D:\Dev\maven\apache-maven-3.2.1\bin\..
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: D:\Dev\Java\jdk7_51_x64\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"git version 1.9.4.msysgit.0; Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:5 2+01:00) Maven home: D:\Dev\maven\apache-maven-3.2.1\bin\.. Java version: 1.7.0_51, vendor: Oracle Corporation Java home: D:\Dev\Java\jdk7_51_x64\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
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
- is cloned by
-
MRELEASE-1016 mvn release:branch fails on Windows to commit changed pom in branch
- Closed