[ since 2.0 ] Configures the Ivy hoard system .
See hoard concept for details on the Ivy hoard concept.
Reading: caches | Apache Ivy™ Documentation
By default option, Ivy defines one depository cache exemplify, called
default-cache, which uses the nonpayment cache settings defined using attributes on this chase. This default case is defined vitamin a retentive as you don ’ deoxythymidine monophosphate define your own default cache using the
default property, and have at least one dependence resolver which doesn ’ t intend which cache exemplify to use .
defaultCacheDir is the default option directory used for both the resolution and repository hoard ( s ). It normally points to a directory in your filesystem. If you want to isolate resoluteness hoard from depository hoard, we recommend setting both the
repositoryCacheDir attributes on this tag rather of using
Since repository hoard implementations are pluggable, you can either define raw cache instances based on the default execution provided in Ivy using the cache child component, or use customs hoard implementations using child elements as you have defined using typedef .
artifactPattern are used to configure the default room Ivy stores Ivy files and artifacts in repository cache ( s ). normally you do not have to change this, unless you want to use the hoard directly from another tool, which is not recommended. These patterns are relative to the repository cache base directory .
checkUpToDate indicates to Ivy if it must check date of artifacts before retrieving them ( i.e. copying them from hoard to another invest in your filesystem ). Usually it is a good matter to check date to avoid unnecessary replicate, even if it ’ s most of the clock a local copy .
|default||the name of the default cache to use on all resolvers not defining the cache example to use||No, defaults to a default cache director example named ‘default-cache ‘|
|defaultCacheDir||a path to a directory to use as default option basedir for both settlement and depository hoard ( randomness )||No, defaults to .ivy2/cache in the user ’ s home directory|
|resolutionCacheDir||the path of the directory to use for all resoluteness cache data||No, defaults to defaultCacheDir|
|repositoryCacheDir||the way of the nonpayment directory to use for repository cache data. This should not point to a directory used as a repository!||No, defaults to defaultCacheDir|
|ivyPattern||default option traffic pattern used to indicate where Ivy files should be put in the depository cache ( second )||No, defaults to [ arrangement ] / [ module ] /ivy- [ revision ] .xml|
|artifactPattern||default option model used to indicate where artifact files should be put in the depository hoard ( s )||No, defaults to [ constitution ] / [ faculty ] / [ type ] s/ [ artifact ] – [ revision ]. [ ext ]|
|checkUpToDate||Deprecated, we recommend using overwriteMode on the retrieve undertaking rather. Indicates if date should be checked before retrieving artifacts from hoard .||No, defaults to true|
|useOrigin||the nonpayment value to use for useOrigin for caches in which it isn ’ t specifically defined. Use true to avoid the transcript of local artifacts to the cache and use directly their original location .||No, defaults to false|
|lockStrategy||the name of the default lock scheme to use when accessing depository cache ( mho )||No, defaults to no-lock|
|hoard||defines a newly repository cache case, based on the default repository hoard execution||0 .. n|
Define 2 hoard instances, named mycache and mycache2, using two different directories as base directory, and using the default patterns and engage strategies. The default hoard exemplify will hush be defined deoxyadenosine monophosphate hanker as at least one addiction resolver does not declare which hoard director to use .