can I turn off the .ivy cache all together?

前端 未结 2 1742
闹比i
闹比i 2020-12-11 06:47

Is there a way to tell ant/ivy to not use a local $HOME/.ivy2 cache?

2条回答
  •  情话喂你
    2020-12-11 07:00

    In the full book on ivy, you check out the "Setting up the repositories" section:

    Several repositories use the same root in your filesystem. Referenced as ${ivy.default.ivy.user.dir}, this is by default the directory .ivy2 in your user home.

    Note that several things can be done by setting Ivy variables.
    To set them without defining your own ivysettings.xml file, you can:

    • set an Ant property before any call to Ivy in your build file if you use Ivy from Ant
    • set an environment variable if you use Ivy from the command line

    For example:

    
      
      
    
    

    The packager resolver has also some settings to be configured to avoid ${home}:

    
        
        
    
    

提交回复
热议问题