You can configure the proxy settings for Grails in STS IDE in two ways.
Via Grails
Command Prompt:
Execute the
following commands from the Grails Command Prompt.
grails> add-proxy
proxyName --host=proxyServerIPorHostName --port=proxyServerPort
--username=userName --password=password
grails>
set-proxy proxyName
Directly
Edit the ProxySettings.groovy file:
Open the
ProxySettings.groovy file located in the following path (replace userName with
your windows user).
C:\Documents and Settings\userName\.grails\ProxySettings.groovy
Add the following
lines into file and save the file.
client=['http.proxyHost':'proxyServerIPorHostName', 'http.proxyPort':'proxyServerPort',
'http.proxyUser':'userName', 'http.proxyPassword':'password']
currentProxy='client'