Adrien Lecharpentier created MRELEASE-867:
---------------------------------------------
Summary: The release:prepare doesn't commit pom.xml changes
Key: MRELEASE-867
URL: https://jira.codehaus.org/browse/MRELEASE-867
Project: Maven Release Plugin
Issue Type: Bug
Components: Git
Affects Versions: 2.4.2
Environment: Mac, maven-3.2.1, git-1.9.0
Reporter: Adrien Lecharpentier
Hi,
the plugin seems not to commit the changes to the pom when upgrading the
version. At first I thought it was the same issue than
http://jira.codehaus.org/browse/MRELEASE-830 but in my log, I clearly see that
the plugin doesn't commit the files:
{code}
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git add -- pom.xml
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git status
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Tagging release with the label codesonar-1.0.2...
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git tag -F
/var/folders/z9/chxs95dn61j18jrs0nb18c540000gn/T/maven-scm-1442291122.commit
codesonar-1.0.2
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git push [email protected]:Zenika/codesonar-plugin.git codesonar-1.0.2
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git ls-files
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Transforming 'Jenkins CodeSonar Plugin'...
[INFO] Not removing release POMs
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git add -- pom.xml
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Executing: /bin/sh -c cd /Users/adrien/projects/zenika/codesonar-jira &&
git status
[INFO] Working directory: /Users/adrien/projects/zenika/codesonar-jira
[INFO] Release preparation complete.
{code}
First, it add the pom, then do a tag and finally push it. The staged pom is
never commit. Which is strange is that the "git status" should tell the plugin
that there is a "uncommited changed".
Thanks.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)