I am trying to get spring cli behind our corporate proxy. I read some suggestions on spring blogs on how to set up a proxy server and tried to follow, but without any success.
I tried the following
- set http.proxyHost, http.proxyPort, http.proxyUser, http.proxyPassword as an env variable for Windows
- also set appropriate variables for https
- set JAVA_OPTS env. variable with -D ...
- confirmed that the JAVA_OPTS variables are correctly matched by setting debug to
Based on the above settings, running the script actually uses the following command to run spring cli
"C:\Program Files\Java\jdk1.8.0_66/bin/java.exe" -Dhttp.proxyHost=http://webproxy.company.com -Dhttp.proxyPort=8080 -Dhttps.proxyHost=https://webproxy.company.com -Dhttps.proxyPort=8080 -Dhttps.proxyUser=zencv -Dhttp.proxyPassword=dadada -cp "C:\My programs\spring-1.3.5.RELEASE\bin\\..\lib\*" org.springframework.boot.loader.JarLauncher init
I always get the same error
Using service at https://start.spring.io
Failed to retrieve metadata from service at 'https://start.spring.io' (Connect to start.spring.io:443 [start.spring.io/141.101.112.192, start.spring.io/190.93.243.191] failed: Connection refused: conn
ect)
, -, curl with proxy . , !