Details
Description
When releasing a multi module maven Project more than 200 components the release prepare step tries to call the following git command:
cmd.exe /X /C "git add - F:\project\pro1\group1\omponent1\pom.xml F:\project\pro1\group1\omponent2\pom.xml . . . F:\project\pro1\pom.xml
The command line is more than 27000 bytes long. In my Jenkins Job I am getting the following error:
16:50:02 [INFO] ------------------------------------------------------------------------ 16:50:02 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project xentric-aggregators-allmodules: Unable to commit files 16:50:02 [ERROR] Provider message: 16:50:02 [ERROR] The git-add command failed. 16:50:02 [ERROR] Command output: 16:50:02 [ERROR] The command line is too long. 16:50:02 [ERROR] -> [Help 1] 16:50:02 [ERROR] 16:50:02 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:50:02 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:50:02 [ERROR] 16:50:02 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:50:02 [ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException] 16:50:02 [ERROR] 16:50:02 [ERROR] After correcting the problems, you can resume the build with the command 16:50:02 [ERROR] mvn <goals> -rf :xentric-aggregators-allmodules
Cause for the error:
Windows 2012 only accepts 8192 Bytes on the command line.
Possible solution:
Do the git add in smaller portions.
Attachments
Issue Links
- depends upon
-
SCM-797 gitexe checkIn() fails due to Windows command line length limitation
- Closed