-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.3.1
-
Fix Version/s: 3.5.0-alpha-1, 3.5.0
-
Component/s: None
-
Labels:None
-
Environment:Windows, Cygwin
When calling mvnDebug in a Cygwin shell, I get the following error
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
The root cause are missing quotes in and around the dirname call. The script currently calls
env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" $(dirname $0)/mvn "$@"
but the call should be
env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" "$(dirname "$0")/mvn" "$@"