How do I configure Ivy to be used offline?
ivy, java
Solution
Set the `useCachesOnly` property on the `resolve` task to `true`.
Problem
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.