You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example when deploying maven on windows 8.1 with the maven cookbook on chef 12:
The package is extracted normaly in the Temp dir, and then I get:
Invalid number of parameters
---- End output of "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e ----
Ran "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e returned 4
The text was updated successfully, but these errors were encountered:
timor-raiman
changed the title
no sensible default for node['ark']['win_install_dir']
invalid number of parameters for xcopy on windows
Mar 25, 2015
In this case, setting node['maven']['m2_home'] = 'C:\usr\local\maven', resolves the issue.
Apparently, the default unix style path '/usr/local/maven' used as the home_dir attribute manifests as this cryptic error.
For example when deploying maven on windows 8.1 with the maven cookbook on chef 12:
The package is extracted normaly in the Temp dir, and then I get:
Invalid number of parameters
---- End output of "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e ----
Ran "C:\7-zip\7z.exe" e "C:\chef\cache/maven-3.1.1.tar.gz" -so | "C:\7-zip\7z.exe" x -aoa -si -ttar -o"C:/Users/traiman/AppData/Local/Temp/d20150325-43224-gdk0ta" -uy && for /f %1 in ('dir /ad /b "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta"') do xcopy "C:\Users\traiman\AppData\Local\Temp\d20150325-43224-gdk0ta%1" "/usr/local/maven" /s /e returned 4
The text was updated successfully, but these errors were encountered: