giulong commented on PR #436:
URL: https://github.com/apache/maven-wrapper/pull/436#issuecomment-5196862128
I confirm the issue on Windows was due to the round brackets escape in the
`test.properties`: `maven=[3.0,3.10-rc\)`. Solved by just removing it:
`maven=[3.0,3.10-rc)`
That escaping is only needed in bash, where parentheses are interpreted as
special chars for subshells.
The weird thing is that the issue didn't arise in Windows with Maven 3, only
with Maven 4. The invoker plugin forwards the args in the same way, removing
the escape already:
* Maven 3:
```sh
[DEBUG] Executing: cmd.exe /X /C "D:\Giulio\apache-maven-3.9.2\bin\mvn.cmd
-B -D
maven.repo.local=D:\Giulio\workspace\maven-wrapper\maven-wrapper-plugin\target\local-repo
-s
D:\Giulio\workspace\maven-wrapper\maven-wrapper-plugin\target\it\interpolated-settings.xml
-D maven=[3.0,3.10-rc)
org.apache.maven.plugins:maven-wrapper-plugin:3.3.5-SNAPSHOT:wrapper exec:exec"
```
* Maven 4:
```sh
[DEBUG] Executing: cmd.exe /X /C
"D:\Giulio\apache-maven-4.0.0-rc-6\bin\mvn.cmd -B -D
maven.repo.local=D:\Giulio\workspace\maven-wrapper\maven-wrapper-plugin\target\local-repo
-s
D:\Giulio\workspace\maven-wrapper\maven-wrapper-plugin\target\it\interpolated-settings.xml
-D maven=[3.0,3.10-rc)
org.apache.maven.plugins:maven-wrapper-plugin:3.3.5-SNAPSHOT:wrapper exec:exec"
```
So I don't really get where the issue was. I suspect it's somewhere in the
`mvn.cmd`, which is different in the two Maven versions.
Nevertheless, now it should all be fixed. Can you run the verify action
again?
--
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]