[ 
https://issues.apache.org/jira/browse/MRELEASE-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839734#comment-16839734
 ] 
Michael Osipov commented on MRELEASE-1026:
------------------------------------------

I believe this has been fixed by SCM-797.

> 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
>            Priority: Blocker
>              Labels: features, windows
>
> *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
(v7.6.3#76005)

Reply via email to