清除Grails依赖缓存 [英] Clearing Grails Dependency Cache
问题描述
在尝试解决我与SNAPSHOT maven依赖关系的问题时遇到一些问题(见这里)。
I run into some problems when trying to solve a problem I had with SNAPSHOT maven dependencies (see here).
当运行 grails依赖关系报告
时,高速缓存的依赖项或多或少会被列出:
When running grails dependency-report
, cached dependencies get listed, more or less like this:
acme-adapter-api by com.acme
108 kB(0 kB下载,缓存中有108 kB)
As 这个回答表明,在更新依赖关系而不增加发行号码时,可能会遇到麻烦,导致缓存未清空,并且SNAPSHOT依赖关系不会被预先获得。
As this answer suggests, you can run into trouble when updating dependencies without increasing the release number, cause the cache is not emptied and SNAPSHOT dependencies don't get refetched, as one would expect.
我查看了所有的地方,也在%HOME%\.grails
目录和床下;-)但找不到任何看起来像缓存。
I looked all over the place, also in the %HOME%\.grails
directory and under the bed ;-) but could not find anything looking like a cache.
它在哪里,所以我可以手动删除?或者甚至更好,如何获得 grails编译
以强力清理?
Where is it, so I can delete it manually? Or even better, how can I get grails compile
to clean it forcefully?
谢谢!
Raoul
Thanks!
Raoul
PS:我正在使用 Grails 1.2M4
推荐答案
据我所知,Grails在引擎盖下使用常春藤(而不是maven)。你可以查看〜/ .grails / ivy-cache
?
As far as I know, Grails uses Ivy under the hood (and not maven). Could you check ~/.grails/ivy-cache
?
这篇关于清除Grails依赖缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!