chore(maven): Set Maven proxy ID in global settings
@@ -58,11 +58,15 @@ func parseProxyFromEnvVar(proxyEnvVar string) (Proxy, error) {
Host: u.Hostname(),
Port: u.Port(),
}
- if proxy.Port == "" {
switch proxy.Protocol {
case "http":
+ proxy.ID = "http-proxy"
+ if proxy.Port == "" {
proxy.Port = "80"
+ }
case "https":
+ proxy.ID = "https-proxy"
+ if proxy.Port == "" {
proxy.Port = "443"
}
}
