netbeans 11 是否支持 grails?
does netbeans 11 support grails?
Netbeans 8 曾经很好地支持 grails 3,但遗憾的是不能用于多模块项目。我试过 intellij ultimate,但它对 grails 的支持也很差。
我刚刚下载了 netbeans 11 的 bin 发行版,"enabled" 它在隐私设置中(不幸的是,他们没有 mac dmg 或 pkg 安装程序),但它似乎没有任何 grails永远支持(没有可用的插件)
我刚刚尝试导入我的 grails 3.3.8 项目,它只显示 "broken"。甚至不给我看源代码。
有没有人运气好?
首先,请注意 Grails 3.x 不适用于 JDK 11,因此如果您的 NetBeans 11.0 安装使用 JDK 11,请将默认平台更改为 JDK 8代替。您可以通过对 etc/netbeans.conf 进行适当的编辑来完成此操作。就我而言,在 Windows 10 机器上,更改如下所示:
netbeans_jdkhome="C:\Java\jdk1.8.0_201"
(当然你仍然可以拥有 JDK 11 作为额外的 Java 平台。)
接下来,作为对 OP 的评论,您需要安装 Groovy 插件才能使用 Grails NetBeans 11。您将看到 Groovy 插件的版本 1.36.1 可通过 Tools > Plugins > Installed:
激活
遗憾的是,在单击 激活 后,插件不允许从 工具 > 选项 > 其他 > Groovy[=46 配置 Grails =] 选项卡,因为缺少 Grails Home 字段:
解决方法是卸载(不仅仅是停用)与 NetBeans 11 捆绑在一起的 Groovy 和 Gradle 插件,并恢复为 NetBeans 8.2 提供的插件。这记录在 Bug Report NETBEANS-1976
Although the new "Gradle" and "Groovy and Gradle" plugins
automatically disable themselves, this isn't good enough to avoid
various conflicts with the old "Gradle Support" plugin. I had to
uninstall the new "Gradle" and "Groovy and Gradle" plugins in order to
get everything working with the old plugin on Netbeans 11.
安装旧版本 Groovy 插件的步骤与安装 NetBeans 9.0 的步骤相同,如 中所述。
完成所有操作后,您应该可以使用项目向导(文件 > 新建项目... > Groovy)创建一个 Grails 应用程序 在 NetBeans 11 中:
Netbeans 8 曾经很好地支持 grails 3,但遗憾的是不能用于多模块项目。我试过 intellij ultimate,但它对 grails 的支持也很差。
我刚刚下载了 netbeans 11 的 bin 发行版,"enabled" 它在隐私设置中(不幸的是,他们没有 mac dmg 或 pkg 安装程序),但它似乎没有任何 grails永远支持(没有可用的插件)
我刚刚尝试导入我的 grails 3.3.8 项目,它只显示 "broken"。甚至不给我看源代码。
有没有人运气好?
首先,请注意 Grails 3.x 不适用于 JDK 11,因此如果您的 NetBeans 11.0 安装使用 JDK 11,请将默认平台更改为 JDK 8代替。您可以通过对 etc/netbeans.conf 进行适当的编辑来完成此操作。就我而言,在 Windows 10 机器上,更改如下所示:
netbeans_jdkhome="C:\Java\jdk1.8.0_201"
(当然你仍然可以拥有 JDK 11 作为额外的 Java 平台。)
接下来,作为对 OP 的评论,您需要安装 Groovy 插件才能使用 Grails NetBeans 11。您将看到 Groovy 插件的版本 1.36.1 可通过 Tools > Plugins > Installed:
激活遗憾的是,在单击 激活 后,插件不允许从 工具 > 选项 > 其他 > Groovy[=46 配置 Grails =] 选项卡,因为缺少 Grails Home 字段:
解决方法是卸载(不仅仅是停用)与 NetBeans 11 捆绑在一起的 Groovy 和 Gradle 插件,并恢复为 NetBeans 8.2 提供的插件。这记录在 Bug Report NETBEANS-1976
Although the new "Gradle" and "Groovy and Gradle" plugins automatically disable themselves, this isn't good enough to avoid various conflicts with the old "Gradle Support" plugin. I had to uninstall the new "Gradle" and "Groovy and Gradle" plugins in order to get everything working with the old plugin on Netbeans 11.
安装旧版本 Groovy 插件的步骤与安装 NetBeans 9.0 的步骤相同,如
完成所有操作后,您应该可以使用项目向导(文件 > 新建项目... > Groovy)创建一个 Grails 应用程序 在 NetBeans 11 中: