Grails Quickie: How to Load Dependency Sources and Javadocs
Once you start a new Grails project and you want to access all the source code of dependent libraries, you have to manually reference the according source files. This is a boring, time-consuming and error-prone task – something like mvn dependency:sources
is definitely missing. Luckily, there exists a workaround which can be done using the eclipse-scripts
[0] plugin:
grails install-plugin eclipse-scripts grails compile grails download-sources-and-javadocs # run twice to download everything grails download-sources-and-javadocs # grails create-eclipse-files # run this one to create .classpath/.project Eclipse/STS files
Executing download-sources-and-javadocs
loads the docs and copies them into the Ivy cache directory.
Thanks to Lari Hotari who came up with this solution on the Grails mailing-list [1].
[0] Eclipse Helper Scripts Plugin
[1] Nabble Grails User Mailing-List – Grails Dependency Sources
Comments (0)
Trackbacks (1)
Leave a comment
Trackback
-
November 29, 2010 at 2:10 pmTweets that mention Grails Quickie: How to Load Dependency Sources and Javadocs « Grails Inside -- Topsy.com