jira-importer commented on issue #908: URL: https://github.com/apache/maven-scm/issues/908#issuecomment-2964632437
**[Matthieu Lecoutre](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=malrin)** commented Reproduced with latest version of the release plugin at this time * maven-release-plugin:2.4.1 * maven-scm-plugin:1.8.1 * git version 1.8.3.msysgit.0 * Maven 3.0.4 (not the last one, but will not change anything i assumed) * windows environment L:\data\gitrepo\mqbuffer\ my modules names: [INFO] mqbuffer [INFO] mqbuffer-properties [INFO] mqbuffer-coordination [INFO] mqbuffer-business [INFO] mqbuffer-web [INFO] mqbuffer-ear [INFO] mqbuffer-api [INFO] mqbuffer-cleaner UPDATE of my first remark I've done some additional tests. and i've changed folder's names of my modules (keeping the same artifactId, only change the folder) mqbuffer-properties becoming mqbufferProperties and other modules on the same model the behaviour the the "git add cmd" is similar and just keep the second word EVEN if i don't use - the name [INFO] [INFO] [INFO] [INFO] mqbuffer .......................................... SUCCESS [0.422s] [INFO] [INFO] mqbuffer-properties ............................... SUCCESS [1.594s] [INFO] [INFO] mqbuffer-coordination ............................. SUCCESS [4.643s] [INFO] [INFO] mqbuffer-business ................................. SUCCESS [8.691s] [INFO] [INFO] mqbuffer-web ...................................... SUCCESS [17.804s] [INFO] [INFO] mqbuffer-ear ...................................... SUCCESS [1.985s] [INFO] [INFO] mqbuffer-api ...................................... SUCCESS [2.563s] [INFO] [INFO] mqbuffer-cleaner .................................. SUCCESS [1.829s] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 39.922s [INFO] [INFO] Finished at: Tue Jul 30 14:18:18 CEST 2013 [INFO] [INFO] Final Memory: 9M/23M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Checking in modified POMs... [INFO] Executing: cmd.exe /X /C "git add -- pom.xml Properties\pom.xml Coordination\pom.xml Business\pom.xml Web\pom.xml Ear\pom.xml Api\pom.xml Cleaner\pom.xml" [INFO] Working directory: L:\data\gitrepo\mqbuffer\mqbuffer [INFO] ------------------------------------------------------------------------ i've forked the https://github.com/olamy/maven-scm projet in order to create a test to reproduce the error, but i'm not sure this a clear mirror of the apache version. if i don't make any mistake, we should have a loop per file to add in the git repository on windows environment already in the 1.8 version ``` private AddScmResult executeAddFileSet( ScmFileSet fileSet ) throws ScmException { File workingDirectory = fileSet.getBasedir(); List<File> files = fileSet.getFileList(); // command line can be too long for windows so add files individually (see SCM-697) if ( Os.isFamily( Os.FAMILY_WINDOWS ) ) { for ( File file : files ) { AddScmResult result = executeAddFiles( workingDirectory, Collections.singletonList( file ) ); if ( result != null ) { return result; } } } // ... ``` if i use now a no flat structure as the previous comment says, everything works fine. Executing: cmd.exe /X /C "git add -- pom.xml mqbuffer-properties\pom.xml mqbuffer-coordination\pom.xml mqbuffer-business\pom.xml mqbuffer-web\pom.xml mqbuffer-ear\pom.xml mqbuffer-api\pom.xml mqbuffer-cleaner\pom.xml" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
