You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/05/10 10:33:56 UTC

[maven] branch MNG-5937 updated: wget doesn't support file scheme

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MNG-5937
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/MNG-5937 by this push:
     new 4eed9d2  wget doesn't support file scheme
4eed9d2 is described below

commit 4eed9d2edcdcd54c7d644bed274399c474c91552
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun May 10 12:33:43 2020 +0200

    wget doesn't support file scheme
---
 maven-wrapper/src/assembly/shared/mvnw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-wrapper/src/assembly/shared/mvnw b/maven-wrapper/src/assembly/shared/mvnw
index 9b78688..b0abad0 100755
--- a/maven-wrapper/src/assembly/shared/mvnw
+++ b/maven-wrapper/src/assembly/shared/mvnw
@@ -259,7 +259,7 @@ else
       wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
     fi
 
-    if command -v wget > /dev/null; then
+    if [ ${jarUrl:0:4} != 'file' ] && [ command -v wget > /dev/null ]; then
         if [ "$MVNW_VERBOSE" = true ]; then
           echo "Found wget ... using wget"
         fi