From 80af2c5ec8a017a6172c30e0a55fa399744da6b2 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Sun, 21 Jun 2020 20:06:54 +0200 Subject: [PATCH] Add -H:EnableURLProtocols=https --- client/pom.xml | 1 + client/src/main/java/org/jboss/fuse/mvnd/client/Installer.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pom.xml b/client/pom.xml index 562d0b6a..8b8154aa 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -97,6 +97,7 @@ --allow-incomplete-classpath -H:IncludeResources=org/jboss/fuse/mvnd/.* -H:IncludeResources=org/jline/utils/.* + -H:EnableURLProtocols=https diff --git a/client/src/main/java/org/jboss/fuse/mvnd/client/Installer.java b/client/src/main/java/org/jboss/fuse/mvnd/client/Installer.java index 61ff3ea5..57f4ac0a 100644 --- a/client/src/main/java/org/jboss/fuse/mvnd/client/Installer.java +++ b/client/src/main/java/org/jboss/fuse/mvnd/client/Installer.java @@ -165,7 +165,7 @@ public class Installer { OutputStream out = new BufferedOutputStream(Files.newOutputStream(localZip), BUFFER_SIZE)) { copy(in, out); } catch (IOException e) { - throw new RuntimeException("Could not download " + zipUri + " to " + localZip); + throw new RuntimeException("Could not download " + zipUri + " to " + localZip, e); } return localZip; } catch (IOException e) {