use warning instead of info

also remove unintended spaces
This commit is contained in:
Reinhold Degenfellner 2018-12-19 20:11:40 +01:00 committed by rfscholte
parent ffc8cc20ca
commit f06e657178
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ private void addBasicAuthentication(URI address, URLConnection connection) throw
return;
}
if (!"https".equals(address.getScheme())) {
Logger.info("WARNING Using HTTP Basic Authentication over an insecure connection to download the Maven distribution. Please consider using HTTPS.");
Logger.warn("WARNING Using HTTP Basic Authentication over an insecure connection to download the Maven distribution. Please consider using HTTPS.");
}
connection.setRequestProperty("Authorization", "Basic " + base64Encode(userInfo));
}
@ -144,7 +144,7 @@ private String base64Encode(String userInfo) {
Method encodeMethod = loader.loadClass("javax.xml.bind.DatatypeConverter").getMethod("printBase64Binary", byte[].class);
return (String) encodeMethod.invoke(null, new Object[]{userInfo.getBytes("UTF-8")});
} catch (Exception java5OrEarlier) {
throw new RuntimeException("Downloading Maven distributions with HTTP Basic Authentication is not supported on your JVM.", java5OrEarlier);
throw new RuntimeException("Downloading Maven distributions with HTTP Basic Authentication is not supported on your JVM.", java5OrEarlier);
}
}
}