Skip to content

Conversation

mattruel
Copy link
Contributor

@mattruel mattruel commented Jan 7, 2020

On windows machine install-hooks fails with this error:

[ERROR] Failed to execute goal com.cosium.code:maven-git-code-format:1.38:install-hooks (install-formatter-hook) on project xyz: java.io.IOException: Cannot run program "C:...\maven\bin\mvn": CreateProcess error=193, %1 is not a valid Win32 application

This fixes the error by looking for mvn.cmd instead of mvn if OS is windows.

@reda-alaoui reda-alaoui merged commit 6510467 into Cosium:master Jan 7, 2020
@reda-alaoui
Copy link
Member

Thank you @mattruel !

@mattruel
Copy link
Contributor Author

mattruel commented Jan 7, 2020

No problem, thank you for the quick merge! Some other ideas for improving this looking for existence of mvn.cmd, will see if it continues to give anyone trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants