Apache Ivy:本地常春藤缓存和本地存储库之间的区别 [英] Apache Ivy: Difference between local Ivy cache and local repository

查看:30
本文介绍了Apache Ivy:本地常春藤缓存和本地存储库之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,Ivy 在您的 /.ivy2 目录下安装本地缓存".但是,如果我决定在同一台机器上托管"一个本地存储库,比如在 /workbench/ivy/,那么这两个概念有何不同?缓存和工件存储库不是一回事吗?

By default Ivy installs a "local cache" under your <HOME>/.ivy2 directory. But if I decide to "host" a local repository on the same machine, say, at <HOME>/workbench/ivy/, then how are these two concepts different? Isn't a cache the same thing as an artifact repository?

推荐答案

概念页描述了ivy缓存的功能和它包含的文件种类:

The concepts page describes the function of the ivy cache and the kinds of file it contains:

http://ant.apache.org/ivy/history/最新里程碑/concept.html

简而言之,ivy 缓存旨在提高性能,它并不意味着构建所依赖的文件的最终副本.一个永远不会发布到缓存.这就是常春藤存储库的用途.

In a nutshell, the ivy cache is designed to improve performance, it's not meant to be the definitive copy of the files a build depends on. One never publishes to the cache. This is what an ivy repository is used for.

补充说明:

  • 有一个 ivy cleancache 任务旨在清除 ivy 的缓存(建议定期进行,以应对行为不端的存储库)
  • 在 Maven-land 中,本地"存储库也用作缓存..... ivy 具有更清晰的目的分离.
  • There is an ivy cleancache task designed to purge ivy's cache (Something which is recommended, periodically, to cater for misbehaving repositories)
  • In Maven-land the "local" repository is also used as a cache..... ivy has a cleaner separation of purpose.

这篇关于Apache Ivy:本地常春藤缓存和本地存储库之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆