Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dan King
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic