You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Lemke (JIRA)" <ji...@apache.org> on 2016/03/07 13:28:40 UTC

[jira] [Commented] (MRELEASE-944) release:prepare fails with module project on git

    [ https://issues.apache.org/jira/browse/MRELEASE-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182951#comment-15182951 ] 

Michael Lemke commented on MRELEASE-944:
----------------------------------------

As a workaround I downloaded git Portable and put {{.../PortableGit/cmd}} first in the {{PATH}} of my cygwin shell.

> release:prepare fails with module project on git
> ------------------------------------------------
>
>                 Key: MRELEASE-944
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-944
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.5.3
>         Environment: cygwin
>            Reporter: Michael Lemke
>
> I have a module project and use maven with cygwin, which has worked fine so far for simple projects.  With the module project {{mvn release:prepare}} fails to checkin the modified poms:
> {noformat}
> [INFO] Checking in modified POMs...
> [INFO] Executing: cmd.exe /X /C "git add -- pom.xml poms\webfilebrowser\pom.xml poms\cds\pom.xml poms\sso-core\pom.xml poms\sso-fp\pom.xml poms\sso-filter\pom.xml"
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git status --porcelain ."
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/cds/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-core/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-filter/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-fp/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/webfilebrowser/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? release.properties
> [INFO] Tagging release with the label wfb-1.2.3...
> [INFO] Executing: cmd.exe /X /C "git tag -F C:\Users\lemkemch\maven-scm-343720559.commit wfb-1.2.3"
> [INFO] Working directory: C:\ECLIPSE-WORKSPACE\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git push http://webtech-scm.schaeffler.com:8056/git/webfilebrowser.git refs/tags/wfb-1.2.3"
> [INFO] Working directory: C:\ECLIPSE-WORKSPACE\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git ls-files"
> [INFO] Working directory: C:\ECLIPSE-WORKSPACE\webfilebrowser
> [INFO] Transforming 'wfb'...
> [INFO] Transforming 'webfilebrowser'...
> [INFO] Transforming 'cds'...
> [INFO] Transforming 'sso-core'...
> [INFO] Transforming 'sso-fp'...
> [INFO] Transforming 'sso-filter'...
> [INFO] Not removing release POMs
> [INFO] Checking in modified POMs...
> [INFO] Executing: cmd.exe /X /C "git add -- pom.xml poms\webfilebrowser\pom.xml poms\cds\pom.xml poms\sso-core\pom.xml poms\sso-fp\pom.xml poms\sso-filter\pom.xml"
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git rev-parse --show-toplevel"
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [INFO] Executing: cmd.exe /X /C "git status --porcelain ."
> [INFO] Working directory: C:\eclipse-workspace\webfilebrowser
> [WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/cds/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-core/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-filter/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/sso-fp/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? poms/webfilebrowser/pom.xml.releaseBackup
> [WARNING] Ignoring unrecognized line: ?? release.properties
> [INFO] Release preparation complete.
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] wfb ............................................... SUCCESS [1:24.734s]
> [INFO] webfilebrowser .................................... SKIPPED
> [INFO] cds ............................................... SKIPPED
> [INFO] sso-core .......................................... SKIPPED
> [INFO] sso-fp ............................................ SKIPPED
> [INFO] sso-filter ........................................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:24.971s
> [INFO] Finished at: Mon Mar 07 11:30:27 CET 2016
> [INFO] Final Memory: 7M/23M
> [INFO] ------------------------------------------------------------------------
> {noformat}
> Obviously the git command above uses a wrong path separator.  git is from cygwin, there is no difference if I run mvn in a cygwin shell or a cmd prompt created from cygwin (not cmd window). 
> And here is the mess left behind:
> {noformat}
> C:\eclipse-workspace\webfilebrowser>git st
> git st
> On branch master
> Your branch is ahead of 'origin/master' by 18 commits.
>   (use "git push" to publish your local commits)
> Changes to be committed:
>   (use "git reset HEAD <file>..." to unstage)
>         modified:   pom.xml
> Changes not staged for commit:
>   (use "git add <file>..." to update what will be committed)
>   (use "git checkout -- <file>..." to discard changes in working directory)
>         modified:   poms/cds/pom.xml
>         modified:   poms/sso-core/pom.xml
>         modified:   poms/sso-filter/pom.xml
>         modified:   poms/sso-fp/pom.xml
>         modified:   poms/webfilebrowser/pom.xml
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>         pom.xml.releaseBackup
>         poms/cds/pom.xml.releaseBackup
>         poms/sso-core/pom.xml.releaseBackup
>         poms/sso-filter/pom.xml.releaseBackup
>         poms/sso-fp/pom.xml.releaseBackup
>         poms/webfilebrowser/pom.xml.releaseBackup
>         release.properties
> C:\eclipse-workspace\webfilebrowser>git hist -10
> git hist -10
> * 52e8510 2016-03-07 11:27:18 +0100 | Request a newer maven release plugin to fix git troubles. (HEAD -> master, tag: wfb-1.2.3) [lemkemch]
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)