You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Clifford W Johnson (Jira)" <ji...@apache.org> on 2022/07/05 17:36:00 UTC
[jira] [Created] (MWRAPPER-72) Windows mvnw.cmd from root directory of drive fails with java usage display
Clifford W Johnson created MWRAPPER-72:
------------------------------------------
Summary: Windows mvnw.cmd from root directory of drive fails with java usage display
Key: MWRAPPER-72
URL: https://issues.apache.org/jira/browse/MWRAPPER-72
Project: Maven Wrapper
Issue Type: Bug
Components: Maven Wrapper Scripts
Affects Versions: 0.5.6
Environment: Windows 10
Reporter: Clifford W Johnson
Attachments: mvnw-cmd_failure.txt
Attempting to useĀ {{.\mvnw.cmd}} when the project root is at the root of a Windows drive (as would happen if {{subst Z: <projectDir>}} 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 {{{}:\{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)