gpt4 book ai didi

maven - 如何从Grails命令/SDK清除Maven缓存?

转载 作者:行者123 更新时间:2023-12-02 14:19:39 24 4
gpt4 key购买 nike

我正在寻找一个Grails SDK命令(即类似grails maven-clean的东西),该命令将清理我的本地.m2\缓存,强制其余Grails构建(grails wargrails run-app等)从远程存储库中重新获取它们。有想法吗?

最佳答案

您是否尝试过..> refresh dependencies,然后在命令行上发布grails clean ...有时deleting the bogus file./m2下的refresh dependencies可以节省很多时间...

还:与grails maven-clean -U命令有关检查这一
grails maven help

mavenRepo ("http://my.server/repos/my-grails-plugins") {
updatePolicy 'always'
}

以下是updatePolicy的可能值:
never – Never check for new snapshots
always – Always check for new snapshots
daily – Check once a day for new snapshots (the default)
interval:x – Check once every x minutes for new snapshots

关于maven - 如何从Grails命令/SDK清除Maven缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23065793/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com