使用Maven存储库作为本地Ivy缓存 [英] Use maven repository as local ivy cache
问题描述
是否有可能使用本地Maven存储库(〜/.m2)作为本地Ivy缓存(〜/.ivy)?它们具有不同的布局.
Is there any possibility to use local Maven repository (~/.m2) as local Ivy cache (~/.ivy)? They have different layouts.
有时我使用Maven,有时我使用下面使用Ivy的SBT,所以我在Maven和Ivy中都有2个相同库的副本.我想使用相同的目录,从而节省磁盘空间和网络.
Sometimes I use Maven and sometimes I use SBT which uses Ivy underneath, so I have 2 copies of same libs in both Maven and Ivy. I would like to use same dir thus saving disk space and network.
谢谢.
推荐答案
您可以使用
<cache/> Tag
.
我认为您将不得不更改artifacts/ivy.xml文件的模式.
标签在这里描述:
http://ant.apache.org/ivy/history/2.0.0/settings/caches.html .
似乎应该可以,但我从未尝试过:).
I think you will have to alter the patterns for the artifacts/ivy.xml files.
The Tag is described here:
http://ant.apache.org/ivy/history/2.0.0/settings/caches.html.
It seems that it should work, but I've never tried :).
这篇关于使用Maven存储库作为本地Ivy缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!