5

How do I force Ivy to work 'offline'; that is, to use only the caches?

The IvyDE plugin for Eclipse has this option. How do I do it from the command line/with ant? There is nothing obvious (that I can find) in the Ivy documentation (or at least that comes up in google searches).

Maven has a -o option that does this.

I'm assuming here that my local cache is fully populated with all the dependencies I need. I plug my laptop into the network at work, do a full build which populates my cache. Then I go home, and even though I have a network connection, I know Ivy can't reach my Ivy repositories, because they are private/internal at work. I don't want to wait for all the timeouts on connecting to the repo.

Community
  • 1
  • 1
wolfcastle
  • 5,850
  • 3
  • 33
  • 46

1 Answers1

5

Set the useCachesOnly property on the resolve task to true.

ig0774
  • 39,669
  • 3
  • 55
  • 57