grails - 无法使用 Eclipse (Grails 2.3.1) 安装 Grails 插件

标签 grails grails-plugin grails-2.3

我有 Grails 2.3.1

当我尝试安装新插件时,出现以下控制台消息:

Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command.
Plugins must be declared in the grails-app/conf/BuildConfig.groovy file.
Example:
grails.project.dependency.resolution = {
   ...
   plugins {
      compile ":console:1.2"
   }
}

最佳答案

从 Grails 2.3 开始,不再可能使用 install-plugin 命令安装插件。

插件必须在 grails-app/conf/BuildConfig.groovy 文件中声明。

不使用 install-plugin(或像您正在使用的为您运行 install-plugin 的 IDE 功能),而是在 中添加依赖项BuildConfig.groovy 中的插件部分:

plugins {
   compile ":console:1.2"
}

install-pluginapplication.properties 中添加条目,但这种方法的可配置性不够,因此我们在 2.2 中弃用了 install-plugin并在 2.3 中将其删除。如您所见,当您运行该脚本时,它什么都不做,只会为您提供您需要自己添加的代码。

关于grails - 无法使用 Eclipse (Grails 2.3.1) 安装 Grails 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19740358/

相关文章:

mongodb - 如何在 grails 和 elasticsearch 中定义单个 bean

grails - Grails 中的用户通知

json - 在Grails 2.3.6中使用带有json格式和状态代码的response方法

Grails plugin.xml - 存储在版本控制中?

grails - 使用 BCrypt 密码哈希与 Spring Security Grails 插件

grails - Grails 2.3.5 War无法在Tomcat 7.0.47中正常工作

grails - 数据驱动的Spock测试

grails - 如何使选择标签默认具有当前年份和当前月份?

grails - 双向关联查询问题:如何使用GORM查询拥有类的所有者?

grails - Grails用户和密码保护到URL