You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Hobson (JIRA)" <ji...@codehaus.org> on 2012/10/10 00:01:37 UTC

[jira] (MSCMPUB-2) publish-scm can fail with many files

Mark Hobson created MSCMPUB-2:
---------------------------------

             Summary: publish-scm can fail with many files
                 Key: MSCMPUB-2
                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
             Project: maven-scm-publish-plugin
          Issue Type: Bug
         Environment: Cygwin, Windows
            Reporter: Mark Hobson


Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:

[INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
...
[INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"

Results in:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add
new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311292#comment-311292 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

nope I don't similar options :-(
Have a look at git help add :-)

       git add [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
                 [--edit | -e] [--all | [--update | -u]] [--intent-to-add | -N]
                 [--refresh] [--ignore-errors] [--ignore-missing] [--]
                 [<filepattern>...]
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311282#comment-311282 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Also, the file-by-file add is pretty slow on Windows - the following git status after the add takes the time.  It'd be nice if there was a way of writing the long git add command to a file and getting cmd.exe to execute that as input, but not sure if that's possible?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311270#comment-311270 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Only this if it helps:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM: The parameter is already set: binary -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add new files to SCM
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:637)
        at org.apache.maven.plugins.scmpublish.ScmPublishPublishScmMojo.scmPublishExecute(ScmPublishPublishScmMojo.java:269)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.execute(AbstractScmPublishMojo.java:485)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.scm.ScmException: The parameter is already set: binary
        at org.apache.maven.scm.CommandParameters.setObject(CommandParameters.java:388)
        at org.apache.maven.scm.CommandParameters.setString(CommandParameters.java:95)
        at org.apache.maven.scm.provider.AbstractScmProvider.add(AbstractScmProvider.java:172)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:623)
        ... 23 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311459#comment-311459 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

The NPE has gone away but I'm afraid we still have line length problems :(

{noformat}
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (default-cli) on project X: Failed to add new files to SCM: The git-add command failed. 'C:\Users\mark\AppData\Local\Temp\git-add9095034289317458180bat' is not recognized as an internal or external command,
operable program or batch file.

        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add new files to SCM: The git-add command failed. 'C:\Users\mark\AppData\Local\Temp\git-add9095034289317458180bat' is not recognized as an internal or external command,
operable program or batch file.

        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.checkScmResult(AbstractScmPublishMojo.java:634)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:617)
        at org.apache.maven.plugins.scmpublish.ScmPublishPublishScmMojo.scmPublishExecute(ScmPublishPublishScmMojo.java:269)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.execute(AbstractScmPublishMojo.java:485)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
{noformat}

The temporary file is 30646 characters long.  Looks like this exceeds the 8192 limit of cmd.exe:
http://blogs.msdn.com/b/oldnewthing/archive/2003/12/10/56028.aspx
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311430#comment-311430 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Encountered another error using this snapshot when new files are added:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add new files to SCM
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:641)
        at org.apache.maven.plugins.scmpublish.ScmPublishPublishScmMojo.scmPublishExecute(ScmPublishPublishScmMojo.java:269)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.execute(AbstractScmPublishMojo.java:485)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command.
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeCommand(AbstractGitScmProvider.java:291)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.add(AbstractGitScmProvider.java:187)
        at org.apache.maven.scm.provider.AbstractScmProvider.add(AbstractScmProvider.java:174)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:624)
        ... 23 more
Caused by: java.lang.NullPointerException
        at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:135)
        at org.apache.maven.scm.provider.git.gitexe.command.add.GitAddCommand.executeAddCommand(GitAddCommand.java:70)
        at org.apache.maven.scm.command.add.AbstractAddCommand.executeCommand(AbstractAddCommand.java:46)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        ... 27 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311269#comment-311269 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

more stack trace available ?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311398#comment-311398 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

@Mark I have implemented this workaround.
Can you test that work in windauze ?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311419#comment-311419 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Let me know if I can help, happy to do some releasing.
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson updated MSCMPUB-2:
------------------------------

    Description: 
Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:

{noformat}
[INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
...
[INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
{noformat}

Results in:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add
new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
{noformat}

  was:
Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:

[INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
...
[INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"

Results in:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add
new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]

    
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add
> new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311572#comment-311572 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

@Mark would you take care of that ? Perso I don't windauze to test :-) Maybe it will be faster if you hack the windauze hack yourself ?
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MSCMPUB-2.
------------------------------

    Resolution: Fixed

Fixed.
@Mark can you test last snapshot ?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson closed MSCMPUB-2.
-----------------------------

    Resolution: Fixed

Fixed by SCM-697.
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311517#comment-311517 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

A couple of related points:

1) The temporary file is misnamed - the suffix should be ".bat" rather than "bat" in GitAddCommand:126.  This resolves the occasional 'unrecognised command' from Windows for some reason.

2) The temporary file doesn't need to further call 'cmd.exe' - it can just contain the 'git add ...' command.

Looks like we still need to batch the commands in <8192 byte chunks though.
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311447#comment-311447 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

Must be fixed with last SNAPSHOT of maven-scm-provider-gitexe.
Can you try using -U ?
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311408#comment-311408 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

I need to release Maven SCM first.
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311401#comment-311401 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Seems good, thanks!  Any chance of a release? :)
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311281#comment-311281 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

That fixed it!  I still get a problem after it pushed the site, something to do with staging and aggregate sites, but this is probably a misconfiguration on my part.  I'll take a look when I have a chance.  Thanks for the quick fix!
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311263#comment-311263 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

more a scm issue. or loop on files and add them one by one in the plugin (if windauze is used :-) )
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson updated MSCMPUB-2:
------------------------------

    Affects Version/s: 1.0-beta-1
        Fix Version/s: 1.0-beta-2
    
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-beta-1
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Mark Hobson
>             Fix For: 1.0-beta-2
>
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MSCMPUB-2:
-------------------------------

    Summary: publish-scm can fail with many files on windows.  (was: publish-scm can fail with many files)
    
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311262#comment-311262 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

grhh windauze :-(
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy reassigned MSCMPUB-2:
----------------------------------

    Assignee: Olivier Lamy
    
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311271#comment-311271 ] 

Olivier Lamy commented on MSCMPUB-2:
------------------------------------

Just deployed a new SNAPSHOT.
Can you try again ?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311430#comment-311430 ] 

Mark Hobson edited comment on MSCMPUB-2 at 10/13/12 5:06 PM:
-------------------------------------------------------------

Encountered another error using this snapshot when new files are added:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add new files to SCM
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:641)
        at org.apache.maven.plugins.scmpublish.ScmPublishPublishScmMojo.scmPublishExecute(ScmPublishPublishScmMojo.java:269)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.execute(AbstractScmPublishMojo.java:485)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command.
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeCommand(AbstractGitScmProvider.java:291)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.add(AbstractGitScmProvider.java:187)
        at org.apache.maven.scm.provider.AbstractScmProvider.add(AbstractScmProvider.java:174)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:624)
        ... 23 more
Caused by: java.lang.NullPointerException
        at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:135)
        at org.apache.maven.scm.provider.git.gitexe.command.add.GitAddCommand.executeAddCommand(GitAddCommand.java:70)
        at org.apache.maven.scm.command.add.AbstractAddCommand.executeCommand(AbstractAddCommand.java:46)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        ... 27 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}

Can raise a separate issue in Maven SCM if needs be?
                
      was (Author: mihobson):
    Encountered another error using this snapshot when new files are added:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add new files to SCM
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:641)
        at org.apache.maven.plugins.scmpublish.ScmPublishPublishScmMojo.scmPublishExecute(ScmPublishPublishScmMojo.java:269)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.execute(AbstractScmPublishMojo.java:485)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM command.
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeCommand(AbstractGitScmProvider.java:291)
        at org.apache.maven.scm.provider.git.AbstractGitScmProvider.add(AbstractGitScmProvider.java:187)
        at org.apache.maven.scm.provider.AbstractScmProvider.add(AbstractScmProvider.java:174)
        at org.apache.maven.plugins.scmpublish.AbstractScmPublishMojo.addFiles(AbstractScmPublishMojo.java:624)
        ... 23 more
Caused by: java.lang.NullPointerException
        at org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.execute(GitCommandLineUtils.java:135)
        at org.apache.maven.scm.provider.git.gitexe.command.add.GitAddCommand.executeAddCommand(GitAddCommand.java:70)
        at org.apache.maven.scm.command.add.AbstractAddCommand.executeCommand(AbstractAddCommand.java:46)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        ... 27 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}
                  
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311578#comment-311578 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Sure, I'll take a look thanks.
                
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311268#comment-311268 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

Thanks for the swift response Olivier!  It seems to get past that problem, although I'm now getting a different error:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-SNAPSHOT:publish-scm (scm-publish) on project X: Failed to add new files to SCM: The parameter is already set: binary -> [Help 1]
{noformat}

I'll have to look into what's happening here and raise another issue, unless you have any ideas?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311517#comment-311517 ] 

Mark Hobson edited comment on MSCMPUB-2 at 10/15/12 11:28 AM:
--------------------------------------------------------------

A couple of related points:

# The temporary file is misnamed - the suffix should be ".bat" rather than "bat" in GitAddCommand:126.  This resolves the occasional 'unrecognised command' from Windows for some reason.
# The temporary file doesn't need to further call 'cmd.exe' - it can just contain the 'git add ...' command
# These recent changes cause the Maven SCM unit tests to fail under Windows

Looks like we still need to batch the commands in <8192 byte chunks though.
                
      was (Author: mihobson):
    A couple of related points:

1) The temporary file is misnamed - the suffix should be ".bat" rather than "bat" in GitAddCommand:126.  This resolves the occasional 'unrecognised command' from Windows for some reason.

2) The temporary file doesn't need to further call 'cmd.exe' - it can just contain the 'git add ...' command.

Looks like we still need to batch the commands in <8192 byte chunks though.
                  
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311293#comment-311293 ] 

Mark Hobson commented on MSCMPUB-2:
-----------------------------------

I see that Jenkins gets around this problem by creating a temporary .bat file, e.g.:

{noformat}
cmd /c call C:\Users\Mark\AppData\Local\Temp\hudson4013819556280913972.bat
{noformat}

How about using this idea within Maven SCM?
                
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Olivier Lamy
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson updated MSCMPUB-2:
------------------------------

    Description: 
Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:

{noformat}
[INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
...
[INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
{noformat}

Results in:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
{noformat}

  was:
Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:

{noformat}
[INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
...
[INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
{noformat}

Results in:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add
new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
{noformat}

    
> publish-scm can fail with many files
> ------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSCMPUB-2) publish-scm can fail with many files on windows.

Posted by "Mark Hobson (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSCMPUB-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hobson reopened MSCMPUB-2:
-------------------------------

      Assignee: Mark Hobson  (was: Olivier Lamy)
    
> publish-scm can fail with many files on windows.
> ------------------------------------------------
>
>                 Key: MSCMPUB-2
>                 URL: https://jira.codehaus.org/browse/MSCMPUB-2
>             Project: maven-scm-publish-plugin
>          Issue Type: Bug
>         Environment: Cygwin, Windows
>            Reporter: Mark Hobson
>            Assignee: Mark Hobson
>
> Running publish-scm with a large site can cause the command process to fail due to the command line being too long.  For example:
> {noformat}
> [INFO] --- maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) @ X ---
> ...
> [INFO] Executing: cmd.exe /X /C "git add -- <long list of files>"
> {noformat}
> Results in:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-publish-plugin:1.0-beta-1:publish-scm (scm-publish) on project X: Failed to add new files to SCM: Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "cmd.exe" (in directory X): CreateProcess error=206, The filename or extension is too long -> [Help 1]
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira