diff --git a/maven-wrapper/mvnw b/maven-wrapper/mvnw index e13f6777fc..9b59d0622a 100755 --- a/maven-wrapper/mvnw +++ b/maven-wrapper/mvnw @@ -245,6 +245,10 @@ else echo "Falling back to using Java to download" fi javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi if [ -e "$javaClass" ]; then if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then if [ "$MVNW_VERBOSE" = true ]; then