Clearing Grails Dependency Cache

2019-02-16 16:25发布

I run into some problems when trying to solve a problem I had with SNAPSHOT maven dependencies (see here).

When running grails dependency-report, cached dependencies get listed, more or less like this:

acme-adapter-api by com.acme
108 kB (0 kB downloaded, 108 kB in cache)

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.

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.

Where is it, so I can delete it manually? Or even better, how can I get grails compile to clean it forcefully?

Thanks!
Raoul

P.S: I'm using Grails 1.2M4

1条回答
祖国的老花朵
2楼-- · 2019-02-16 16:48

As far as I know, Grails uses Ivy under the hood (and not maven). Could you check ~/.grails/ivy-cache?

查看更多
登录 后发表回答