[MWRAPPER-72] Windows mvnw.cmd from root directory of drive fails with java usage display
- Dominant language
- Java
- Stars
- 254
- Forks
- 78
- Avg merge
- 5h 26m
- Merged PRs (30d)
- 2
Description
**[Clifford W Johnson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cljohnso)** opened **[MWRAPPER-72](https://issues.apache.org/jira/browse/MWRAPPER-72?redirect=false)** and commented
Attempting to use `.\mvnw.cmd` when the project root is at the root of a Windows drive (as would happen if `subst Z: ` is used) results in the script displaying the `java` usage information and not performing the expected Maven operation. It seems that `java` has an issue in parsing the command line argument `{}"-Dmaven.multiModuleProjectDirectory=Z:\"{`}.
My local work-around was to append a dot/period (`{}.{`}) to the `EXEC_DIR` if `EXEC_DIR` ends with `` `":\"{`}.
---
**Affects:** 0.5.6
**Attachments:**
- [mvnw-cmd_failure.txt](https://issues.apache.org/jira/secure/attachment/13046321/mvnw-cmd_failure.txt) (_5.47 kB_)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.