Cygwin, cmd and git can get in each others way and confuse things.
do you have the ability to try from a cmd.exe console and with the native git 
port?

/James

-----Original Message-----
From: codingplayer [mailto:[email protected]]
Sent: 20 October 2011 10:25
To: [email protected]
Subject: Re: Error during release:perform with multi-module git project on 
Windows

Hi,

we currently experience the same problem.

running mvn release:prepare (on a Windows 7 machine from a cygwin console) in a 
module-project fails with the following error:

[INFO] Executing: cmd.exe /X /C "git add -- pom.xml 
C:\DATA\Workspace\sandbox\sandbox-module1\pom.xml
C:\DATA\Workspace\sandbox\sandbox-module2\pom.xml
C:\DATA\Workspace\sandbox\sandbox-module2\sandbox-module2-submodule1\pom.xml"
[INFO] Working directory: c:\DATA\Workspace\sandbox [INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Smart Engine - Sandbox ............................ FAILURE [0.547s] 
[INFO] Smart Engine - Sandbox - First Module ............. SKIPPED [INFO] Smart 
Engine - Sandbox - Second Module ............ SKIPPED [INFO] Smart Engine - 
Sandbox - Second Module's First Submodule  SKIPPED [INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.221s
[INFO] Finished at: Thu Oct 20 11:00:00 CEST 2011 [INFO] Final Memory: 22M/981M 
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.2.1:rollback (default-cli) on 
project sandbox: Unable to commit files [ERROR] Provider message:
[ERROR] The git-add command failed.
[ERROR] Command output:
[ERROR] fatal: 'C:\DATA\Workspace\sandbox\sandbox-module1\pom.xml' is outside 
repository


We are using the latest release version of the maven-release-plugin:

        <properties>
                <release.plugin.version>2.2.1</release.plugin.version>
        </properties>

        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>${release.plugin.version}</version>
        </plugin>

And yes, the parent project is a git repository:

        myusername@mymachine /c/DATA/Workspace/sandbox (release/1.0)
        $ git status
        # On branch release/1.0
        nothing to commit (working directory clean)

Are there any workarounds or any solutions yet?

br
R.C.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-during-release-perform-with-multi-module-git-project-on-Windows-tp4610985p4920884.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



**************************************************************************************
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
[email protected] and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to