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

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

问题描述

在默认情况下安装常春藤你的℃在本地缓存HOME方式> / ivy2 目录。但是,如果我决定要在同一台机器上的主机本地存储库,比如说,在< HOME> /工作台/常春藤/ ,那么如何将这两个概念有什么不同?是不是缓存同样的事情作为一个神器库?

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?

推荐答案

的概念页描述了常春藤缓存的功能和各种文件包含:

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

<一个href=\"http://ant.apache.org/ivy/history/latest-milestone/concept.html\">http://ant.apache.org/ivy/history/latest-milestone/concept.html

在简单地说,常青藤缓存旨在提高性能,它并不意味着是对文件的权威副本的生成依赖。一个从来没有发布到缓存中。这是一个常青藤存储库用途。

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.

产生额外的注意事项:


  • 有一个常春藤 cleancache 任务,旨在清除常春藤的缓存(有什么这是推荐,定期,以迎合行为不端库)

  • 在Maven的土地本地储存库也被用来作为高速缓存.....常春藤有目的的清洁分离。

  • 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的常春藤:常春藤本地缓存和本地资源库之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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