If I change my Local Repository in the options dialog to something with a space the build fails
NetBeans: Executing 'cmd /c C:\Program Files\apache-maven-2.1.0\bin\mvn.bat -Dnetbeans.execution=true
-Dmaven.repo.local=C:\Documents and Settings\summersb\.m2\repository install'
NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
I am using 6.7 Beta
If I leave the local repo empty (default) it works.
the problem was in execution via cmd /c (introduced by for for issue 153101)
now we quote the local path parameter (and maven command line path as well) so both shall work.
we also fallback to cmd /c only if access right problems occur.
jpospisil: please test extensively and report any space in path problems on windows. thanks.
Well, some of the space_in_path test cases are harder to reproduce on Win Vista, since default user directory, where .m2
repository folder is generated is different from XP version (C:\Documents and Settings\... versus C;\Users\...) and I
suspect i will find some of such issues when I switch to Win XP testing platform, which is planned soon. I will look at
this area thoroughly,at this time.
In this case,however, I think this issue could have cause similar to issue 161670 .
yes, 161670 is related, I've made the fix more generic though.
Integrated into 'main-golden', will be available in build *200905090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milos Kleint <firstname.lastname@example.org>
Log: #164234, #153101 quote property values containing spaces on windows, use cmd /c for execution only if failing without it. cmd /c has negative effect of quoting property values
*** Issue 164303 has been marked as a duplicate of this issue. ***
*** Issue 164899 has been marked as a duplicate of this issue. ***