[
https://issues.apache.org/jira/browse/MWRAPPER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clifford W Johnson updated MWRAPPER-72:
---------------------------------------
Description:
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 {{<colon><backslash>}} {{":\"{}}}.
was:
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 {{{}:\{}}}.
> 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
> Priority: Normal
> 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 {{<colon><backslash>}} {{":\"{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)