如何在netbeans 9中打开grails 3.3应用程序? [英] how to open a grails 3.3 app in netbeans 9?

查看:83
本文介绍了如何在netbeans 9中打开grails 3.3应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到在Mac上的netbeans 9中打开grails 3.3.8项目的方法.

I cant find a way to open a grails 3.3.8 project in netbeans 9 on the mac.

我发现了几篇文章(请参阅下文),但它们均不起作用.

I have found several posts (see below) but none of them work.

说通过命令行创建项目,例如单击"grails create-app hello",然后使用打开项目"对话框打开hello目录.但是,当我打开hello grails应用程序目录时,项目名称字段显示为灰色,单击打开按钮无效.

This one says create the project via the command line, e.g. "grails create-app hello", then use The "open project" dialog to open the hello directory. However, when I open the hello grails application directory, the project name field is greyed out, and hitting the open button has no effect.

这篇文章说使用适用于netbeans的grails插件创建项目.它说去netbeans的插件对话框并搜索grails.没有grails插件.

This article says to create the project using the grails plugin for netbeans. It says to go the plugins dialog in netbeans and search for grails. There is no grails plugin.

grails和java随所需的导出一起安装. 注意,我从 https://github.com/carljmosca/netbeans-macos-bundle 根据netbeans官方安装指南中的建议.

grails and java are installed with the required exports. Note, I installed netbeans from https://github.com/carljmosca/netbeans-macos-bundle as recommended in the official netbeans install guide.

有人建议吗?

推荐答案

好吧,我发现了一个晦涩的帖子,引出了答案.

Well, I found an obscure post which lead to the answer.

似乎他们从netbeans 9中删除了大多数插件,包括grails插件.

It seems that they removed most of the plugins from netbeans 9, including the grails one.

一种变通方法(不确定它的安全性)是添加netbeans 8.2提供程序:

A work around (not sure how safe it is) is to add the netbeans 8.2 provider:

转到工具| Apache NetBeans(正在孵化)9.0中的插件,以及 设置标签,注册NetBeans IDE 8.2更新中心:

Go to Tools | Plugins in Apache NetBeans (incubating) 9.0 and, in the Settings tab, register the NetBeans IDE 8.2 update center:

http://updates.netbeans .org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz

感谢: https://blogs.apache. org/netbeans/entry/what-s-happened-to-my

我现在可以打开grails项目,但是我无法运行它.它说:尚未设置Grails主页.使用菜单Tools/Options/Groovy设置环境."

I can now open a grails project, but I cant run it. It says "Grails home has not been set. Use menu Tools/Options/Groovy to set the environment."

问题是,我已经在.bash_profile中设置了GRIALS_HOME,并且在工具菜单下没有选项.

The problem is, I have already set GRIALS_HOME in my .bash_profile,and that there is no options under tools menu.

经过一番努力,我在Netbeans菜单->首选项->杂项Groovy中找到了grails主页设置:

After some effort, I found the grails home setting in Netbeans Menu->preferences->Miscellaneous-Groovy:

现在,我可以运行grails程序,也可以使用菜单创建域对象等.

Now I can run grails programs, and also use the menus to create domain objects etc. Nice!

这篇关于如何在netbeans 9中打开grails 3.3应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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