Grails总是尝试卸载插件

Grails总是尝试卸载插件,grails,grails-plugin,grails-2.0,Grails,Grails Plugin,Grails 2.0,每次我运行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

每次我运行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资源从命令行安装它时,它只记录以下内容:

| Plugin not installed.
若插件并没有安装,而我正在运行grails run应用程序,那个么每次它都会写下!:

| Warning No plugin [resources-1.2.RC2] installed, cannot uninstall
应用程序失败,因为无法从资源插件中找到所需的类

-

我想这是因为~/grails中的配置损坏了,我前一段时间尝试卸载它,每次运行时它都会执行此操作。但我能找到

我甚至试图从~/.grails/2.1.1/projects中删除project dir,但没有帮助

如何阻止它删除此插件?grails存储了什么信息?应该卸载什么插件


另外,我不明白为什么grails没有使用BuildConfig.groovy中的插件{compile:resources:1.2.RC2}?我总是需要运行install plugin命令才能使其正常工作?

实际上,install plugin已被弃用。改用BuildConfig.groovy。要正确设置所有内容,请从application.properties文件中删除所有插件。然后将它们添加到BuildConfig.groovy中。 IntelliJ不太擅长捕捉此类更新,因此在更新BuildConfig后,您可能必须手动运行刷新依赖项。这正是它以前不工作的原因。

似乎是bug