I'm talking about ivy 2, not some newer version.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Switching off the cache affects performance. Switching it off loses one of the big benefits of dependency management, because you'd force each build to download everything....
Having said that, over time the cache sometimes become stale, especially in situations where the remote modules might have changing dependencies (Can occur during development). To counter this problem I always include an extra build target that purges my ivy cache:
<target name="clean-all" depends="clean">
<ivy:cleancache />
</target>
This gives you the best of both worlds. Disabling the cache is accomplished by first running a purge as follows:
ant clean-all build