This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Groovy and the fly likes How to use Grails' (ivy) dependency cache in IDE? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "How to use Grails Watch "How to use Grails New topic
Author

How to use Grails' (ivy) dependency cache in IDE?

Dan King
Ranch Hand

Joined: Mar 18, 2009
Posts: 84
Anyone know how to configure Eclipse or Netbeans to use the ivy cache Grails creates via its dependency resolution DSL (BuildConfig.groovy file), similar to how a Maven2 repo is automatically used?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

In your home folder there will by a directory called .ivy2 which contains a maven like structure. You'll need to use the libraries specified there for the classpath for Eclipse/Netbeans. So just add the JAR's you need to your classpath as you would any other project. That said, I'm surprised Netbeans, at the very least, doesn't do this automatically for you.

On a related note, IDEA does this automatically.


GenRocket - Experts at Building Test Data
Dan King
Ranch Hand

Joined: Mar 18, 2009
Posts: 84
Gregg Bolinger wrote:...So just add the JAR's you need to your classpath as you would any other project. That said, I'm surprised Netbeans, at the very least, doesn't do this automatically for you.

On a related note, IDEA does this automatically.
I've got quite a few deps, so I was hoping that either Eclipse or Netbeans could load the jars onto the classpath automatically; but sadly it seems they don't have the ability to. Guess I'm stuck loading the jars manually...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Grails' (ivy) dependency cache in IDE?
 
Similar Threads
Ant + Ivy: Add 3rd party stuff to shared repository
ivy users - record of dependencies?
Grails with Dojo
Ivy Settings Issue
Dependency management