Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6244639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:21:39+00:00 2026-05-24T12:21:39+00:00

We recently switched from Ant to Buildr for building our projects. We use Ivy

  • 0

We recently switched from Ant to Buildr for building our projects. We use Ivy for dependency management, using the ivy4r Buildr extension. We have a local repository at the office which is used as a cache for public artifacts and in which we also publish our own artifacts.

Now for the problem: I’d like to be able to build my project when I do not have access to the office repository. Buildr has a flag to tell it to work offline (-o), but ivy4r does not seem to take this into account. Is there any way to make Ivy not try to download artifacts? I have them all available in the cache on my machine already.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:21:41+00:00Added an answer on May 24, 2026 at 12:21 pm

    Setting the cache timeout to eternal

    You can set the cache property ${ivy.cache.ttl.default} to eternal this will set the TTL: so that the repository will not be checked for new revisions.

    You could achieve this by calling ant with the following parameter:

    ant -Divy.cache.ttl.default=eternal build
    

    This is from the documentation:

    Defines a TTL (Time To Live) rule for resolved revision caching. When
    Ivy resolves a dynamic version constraint (like latest.integration or
    a version range), it can store the result of the resolution (like
    latest.integration=1.5.1) for a given time, called TTL. It means that
    Ivy will reuse this dynamic revision resolution result without
    accessing the repositories for the duration of the TTL, unless running
    resolve in refresh mode.

    …

    The TTL duration can also be set to ‘eternal’, in which case once
    resolved the revision is always use, except when resolving in refresh
    mode.

    Other references:

    • IVY-879 Implementation of this feature

    Setting UseCacheOnly for the resolve task

    The resolve task has the attribute useCacheOnly, which can be used to

    force[s] the resolvers to only use their caches and not their actual
    contents

    Example:

    <ivy:resolve file="path/to/ivy.xml" useCacheOnly="true/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At my company, we recently switched from VC9 to VC10. We migrated our projects
I recently switched from using Linq to Sql to the Entity Framework. One of
I recently switched from using NSTimer to CVDisplayLink to redraw my OpenGL animation, but
I recently switched over from SVN to Hg. I used to use TortoiseSVN, and
I'm using Octopress, which uses Disqus for comments. I've recently switched from a light
I just recently switched out our repository and context from Linq-to-SQL to Entity Framework
Summary I've recently switched from using Google's JsTestDriver to Testem but miss LCOV HTML
I've recently switched over from using the Bash command prompt to Zsh on Mac
I have recently switched from using Ubuntu system Ruby to using RVM. When I
I recently switched from Eclipse to Intellij. Now I'm trying to use the andengine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.