torstai 29. syyskuuta 2011

Speed up STS / Eclipse updates by using a mirror for download.eclipse.org

download.eclipse.org is down currently.

With these instructions you will be able to use one of these mirrors instead:


  • http://eclipse.mirror.kangaroot.net/releases/indigo/ - [Belgium] Kangaroot Linux Solutions (http)

  • http://eclipse.ialto.com/releases/indigo/ - [France] Ialto (http)

  • http://eclipse.stu.edu.tw/releases/indigo/ - [Taiwan] Computer Center, Shu-Te University (http)

  • http://eclipse.c3sl.ufpr.br/releases/indigo/ - [Brazil] C3SL - Federal University of Parana (http)





These instructions are for Ubuntu Linux:



execute:

sudo apt-get install apache2
sudo a2enmod proxy proxy_http


Add file /etc/apache2/sites-available/eclipse-proxy

sudo nano /etc/apache2/sites-available/eclipse-proxy


Text for file


<VirtualHost *:80>
ServerName download.eclipse.org
<Proxy *>
AddDefaultCharset off
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / http://eclipse.mirror.kangaroot.net/
ProxyPassReverse / http://eclipse.mirror.kangaroot.net/
</VirtualHost>



execute:

sudo a2ensite eclipse-proxy
sudo /etc/init.d/apache2 restart


Add this line to /etc/hosts :

127.0.0.200 download.eclipse.org


Comment that line out if you want to disable the proxy.

keskiviikko 2. helmikuuta 2011

Downloading sources and javadocs of dependencies in Grails; updated for STS 2.5.2

I've updated the eclipse-scripts plugin to support linking sources and javadocs of dependencies to a Grails project in STS 2.5.2.
The older script version wasn't compatible with STS "Grails Dependency Management".
This version also downloads sources and javadocs of transitive dependencies.

Quick start:

grails install-plugin eclipse-scripts
grails compile
grails download-sources-and-javadocs
grails sts-link-sources-and-javadocs


After this refresh the workspace in STS (F5), restart STS and do "right click on project name" -> Grails Tools -> Refresh Dependencies.

Go to the plugin page for more information.