【发布时间】:2012-09-29 04:50:44
【问题描述】:
每次我运行 Grails 应用程序时,它都会尝试卸载插件 (resources-1.2.RC2)。当它使用 IntelliJ IDEA 安装时,它成功卸载它,我看到:
| Uninstalled plugin [resources]
失败:
| Error Fatal error during compilation org.apache.tools.ant.BuildException:
srcdir "***/2.1.1/projects/***/plugins/resources-1.2.RC2/grails-app/resourceMappers"
does not exist! (Use --stacktrace to see the full trace)
请注意,我只能使用 InteliJ IDEA 安装此插件,当我尝试从命令行(使用 grails install-plugin resources)安装它时,它只会记录:
| Plugin not installed.
如果没有安装插件,而我正在做grails run-app,它会写(每次!):
| Warning No plugin [resources-1.2.RC2] installed, cannot uninstall
应用程序失败,因为无法从 resources 插件中找到所需的类。
--
我猜这是因为~/grails 内部的配置损坏(我前段时间尝试卸载它),并且它在每次运行时执行此操作。但我能找到。
我什至尝试从 ~/.grails/2.1.1/projects 中删除项目目录 - 没有帮助。
如何阻止它删除此插件?哪里 grails 存储信息它应该卸载什么插件?
PS 另外,我不明白,为什么 grails 不使用 BuildConfig.groovy 中的 plugins { compile ":resources:1.2.RC2" }?我总是需要运行install-plugin 命令才能使其工作?
【问题讨论】:
标签: grails grails-plugin grails-2.0