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]