JDK + OSX 환경 Proxy 등록
1. ~/.bash_profile 아래 내용 추가
httpProxyServer=127.0.0.1:8080
httpsProxyServer=127.0.0.1:8080
export http_proxy=$httpProxyServer
export HTTP_PROXY=$httpsProxyServer
export https_proxy=$httpProxyServer
export HTTPS_PROXY=$httpsProxyServer
export no_proxy=localhost,127.0.0.1,*.local,169.254/16
export NO_PROXY=localhost,127.0.0.1,*.local,169.254/16
2. https://bcuts.tistory.com/52 링크에서 인증서 등록
JDK 인증서 등록
JDK에 프록시 인증서 등록 keytool -importcert -keystore ${JAVA_HOME}/jre/lib/security/cacerts -storepass changeit -file xxx.cer
bcuts.tistory.com
3. ${JAVA_HOME}//jre/lib 디렉토리에 net.properties 파일 수정 필요
케이스 1. 시스템과 동일한 프록시 정보를 사용하는 경우
java.net.useSystemProxies=true
케이스 2. 시스템과 다른 프록시 정보를 사용하는 경우
java.net.useSystemProxies=false
http.proxyHost=122.12.12.12
http.proxyPort=8080
https.proxyHost=12.12.12.12
https.proxyPort=8080