Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.3.1
-
None
-
None
-
Windows, Cygwin
Description
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" "$@"