[
https://issues.apache.org/jira/browse/MRELEASE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MRELEASE-1026.
------------------------------------
Fix Version/s: 3.0.0-M1
Assignee: Michael Osipov
Resolution: Fixed
Assuming SCM-797 is the root cause, this has been fix in 3.0.0-M1
> release:perform issues a git add with more than 27000 bytes.
> ------------------------------------------------------------
>
> Key: MRELEASE-1026
> URL: https://issues.apache.org/jira/browse/MRELEASE-1026
> Project: Maven Release Plugin
> Issue Type: Task
> Components: prepare
> Affects Versions: 2.5.3
> Environment: Windows 2012 Server
> Reporter: Martin Brossmann
> Assignee: Michael Osipov
> Priority: Blocker
> Labels: features, windows
> Fix For: 3.0.0-M1
>
>
> *When releasing a multi module maven Project more than 200 components the
> release prepare step tries to call the following git command:*
> {code:java}
> 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{code}
> The command line is more than 27000 bytes long. In my Jenkins Job I am
> getting the following error:
> {code:java}
> 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
> {code}
> Cause for the error:
> Windows 2012 only accepts 8192 Bytes on the command line.
>
> Possible solution:
> Do the git add in smaller portions.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)