aspose file tools
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
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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.
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
Dependency management
Ivy Settings Issue
ivy users - record of dependencies?
Grails with Dojo