maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "miha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MRELEASE-944) release:prepare fails with module project on git
Date Thu, 01 Feb 2018 12:24:00 GMT

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

miha commented on MRELEASE-944:
-------------------------------

Same problem on osx, and the root cause is the name of the directory where all this gets executed:
{noformat}
/Users/builder/p r %00 j/myproj{noformat}
Changing to directory with the name containing no "unusual" characters solves the problem.
Relevant system info below.
{code:java}
$ git --version
git version 2.10.1 (Apple Git-78)
$ mvn --version
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T10:58:13+03:00)
Maven home: /Users/builder/p r %00 j/maven
Java version: 1.8.0_152, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"{code}
{code:java}
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<maven-scm-plugin.version>1.9.5</maven-scm-plugin.version>
{code}
 

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

Mime
View raw message