-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
when I execute mvn io.quarkus:quarkus-maven-plugin:3.24.4:update -Dstream="3.27" -Drewrite -DquarkusRegistryClient=true it works
if I change the plugin version to 3.25.0.CR1 I get Execution default-cli of goal io.quarkus:quarkus-maven-plugin:3.25.0.CR1:update failed: Cannot locate mvnw or mvn. Make sure mvnw is in the project directory or mvn is in your PATH.
if I change the plugin version to 3.25.4 I get Execution default-cli of goal io.quarkus:quarkus-maven-plugin:3.25.4:update failed: The OpenRewrite 6.21.0 command exited with an error. Logs can be found at: target\rewrite\rewrite.log: Failed to start process pipeline: Cannot run program "E:\projects\maven\apache-maven-3.9.9\bin\mvn": CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
and I have the same error if I try with the latest plugin version 3.29.0
a workaround is to rename E:\projects\maven\apache-maven-3.9.9\bin\mvn (the linux script) into mvn.old so that E:\projects\maven\apache-maven-3.9.9\bin\mvn.cmd (the windows scripts) is the only one available.
I suspect #48354 and/or #49166 brought this regression in quarkus update.
Expected behavior
quarkus update maven plugin should be able to run the open rewrite maven plugin even on windows
Actual behavior
this fails on windows
How to Reproduce?
try to update an application with a quarkus maven plugin with version => 3.25.1 on windows with command such as: mvn io.quarkus:quarkus-maven-plugin:3.29.0:update -Dstream="3.27" -Drewrite -DquarkusRegistryClient=true
Output of uname -a or ver
Microsoft Windows [Version 10.0.22631.5909]
Output of java -version
21
Quarkus version or git rev
3.29.0
Build tool (ie. output of mvnw --version or gradlew --version)
mvn 3.9.9
Additional information
No response