netbeans 11是否支持grails? [英] does netbeans 11 support grails?

查看:117
本文介绍了netbeans 11是否支持grails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Netbeans 8曾经很好地支持grails 3,但是不幸的是,它不适用于多模块项目.我尝试过intellij Ultimate,但是它的grails支持却很差.

Netbeans 8 used to support grails 3 well, but unfortunately did not work with multi-module projects. I tried intellij ultimate, but its grails support is just as poor.

我刚刚下载了netbeans 11的bin发行版,并在隐私设置中启用"了(不幸的是,他们没有mac dmg或pkg安装程序),但是似乎没有任何grails支持(没有可用的插件)

I just downloaded the bin distribution of netbeans 11, and "enabled" it in privacy settings (They dont have a mac dmg or pkg installer unfortunately), but it doesnt seem to have any grails support whatso ever (no plugins available)

我刚刚尝试导入我的grails 3.3.8项目,它只是说已损坏".甚至都不会告诉我源代码.

I just tried importing my grails 3.3.8 project, and it just says "broken". Won't even show me the source code.

有人有运气吗?

推荐答案

首先,请注意Grails 3.x不适用于JDK 11,因此,如果您的NetBeans 11.0安装使用的是JDK 11,请将默认平台更改为JDK 8.反而.您可以通过对 etc/netbeans.conf 进行适当的编辑来完成此操作.就我而言,在Windows 10计算机上,更改如下所示:

First, note that Grails 3.x will not work with JDK 11, so if your NetBeans 11.0 installation is using JDK 11, change the default platform to JDK 8 instead. You can do this by a suitable edit to etc/netbeans.conf. In my case, on a Windows 10 machine the change looks like this:

netbeans_jdkhome ="C:\ Java \ jdk1.8.0_201"

netbeans_jdkhome="C:\Java\jdk1.8.0_201"

(当然,您仍然可以将JDK 11作为附加的Java平台.)

(Of course you can still have JDK 11 as an additional Java platform.)

接下来,作为对OP的注释,您需要安装 Groovy 插件,以将 Grails 与NetBeans 11结合使用.您将看到版本1.36.1的NetBeans.您可以从工具>插件>已安装激活Groovy插件:

Next, as a comment to the OP noted, you need to install the Groovy plugin to use Grails with NetBeans 11. You will see that version 1.36.1 of the Groovy plugin is available for activation from Tools > Plugins > Installed:

不幸的是,单击激活后,该插件不允许从工具>选项>其他> Groovy 选项卡配置Grails,因为 Grails主页字段缺失:

Unfortunately, after clicking Activate, the plugin does not allow configuration of Grails from the Tools > Options > Miscellaneous > Groovy tab, since the Grails Home field is missing:

此问题的解决方案是卸载(而不是停用)与NetBeans 11捆绑在一起的Groovy和Gradle插件,并还原为NetBeans 8.2随附的插件. 错误报告NETBEANS-1976

The fix for that is to uninstall (not just deactivate) the Groovy and Gradle plugins that came bundled with NetBeans 11, and revert to the plugin that was provided with NetBeans 8.2. This is documented in Bug Report NETBEANS-1976

尽管新的"Gradle"和"Groovy and Gradle"插件 自动禁用自己,这不足以避免 与旧的"Gradle支持"插件发生各种冲突.我不得不 卸载新的"Gradle"和"Groovy and Gradle"插件,以便 使用Netbeans 11上的旧插件使一切正常工作.

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的步骤相同,如此答案中所述在Netbeans IDE 9中缺少Groovy和Grail插件"..

The steps to follow to install the older version of the Groovy plugin are the same as those with NetBeans 9.0, as described in this answer to "Groovy and Grail plugin is missing in Netbeans IDE 9".

完成所有操作后,您应该可以使用项目向导(文件>新建项目...> Groovy )在NetBeans 11中创建 Grails应用程序:

After doing all that you should be able to use the Project Wizard (File > New Project... > Groovy) to create a Grails Application in NetBeans 11:

这篇关于netbeans 11是否支持grails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆