There are several pitfall you can win if you start using STS behind a proxy. Here is my shit list :-)
Install Groovy and Grails support in STS
After downloading STS 2.7 most of us would try to install the Grails and Groovy Support on the Extension tab of the STS. This will fail if you are behind a proxy. They claim to fix it in later versions. Till then just do the following:
- Adjust your network settings within the STS Window->Prefs->network according to your proxy
- Go to Help->Install New Software and http://download.eclipse.org/mylyn/snapshots/3.6 as a new site
- Install the MyLyn Task List Feature
- Restart
you should now be able to use the extension tab.
Install Grails plugins
If you try to install Grails plugins behind a proxy or firewall i.e. like
grails install-plugin calendar
you might get an error. To workaround this set the Proxy settings for grails
within the ProxySettings.groovy wihtin your .grails folder in your home dir.
Or you go the grails command line way like that:
grails add-proxy aproxy "--host=myproxy.de" "--port=8008" "--username=myusername" "--password=mypassword"
grails set-proxy aproxy
That should create a valid ProxySettings.groovy and activate the proxy.
Even the STS integrated Grails plugin manager should work now.
Keine Kommentare:
Kommentar veröffentlichen