You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/03/28 15:01:01 UTC
[jira] [Commented] (MNG-5823) mvnDebug doesn't work with M2_HOME
with spaces - missing quotes
[ https://issues.apache.org/jira/browse/MNG-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069661#comment-17069661 ]
Hudson commented on MNG-5823:
-----------------------------
Build failed in Jenkins: Maven TLP » maven-studies » maven-metrics #4
See https://builds.apache.org/job/maven-box/job/maven-studies/job/maven-metrics/4/
> mvnDebug doesn't work with M2_HOME with spaces - missing quotes
> ---------------------------------------------------------------
>
> Key: MNG-5823
> URL: https://issues.apache.org/jira/browse/MNG-5823
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.3.1
> Environment: Windows, Cygwin
> Reporter: Tobias Oberlies
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.5.0-alpha-1, 3.5.0
>
>
> When calling {{mvnDebug}} in a Cygwin shell, I get the following error
> {noformat}
> Preparing to Execute Maven in Debug Mode
> dirname: extra operand `Files/Maven/apache-maven-3.3.1/bin/mvnDebug'
> Try `dirname --help' for more information.
> env: /mvn: No such file or directory
> {noformat}
> The root cause are missing quotes in and around the dirname call. The script currently calls
> {noformat}
> env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" $(dirname $0)/mvn "$@"
> {noformat}
> but the call should be
> {noformat}
> env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" "$(dirname "$0")/mvn" "$@"
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)