如何为Netbeans配置Grails? [英] How to configure Grails for Netbeans?

查看:77
本文介绍了如何为Netbeans配置Grails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Netbeans中配置Grails.

I am trying to configure Grails in Netbeans.

  • Grails版本:3.2
  • Netbeans:8.2
  • JDK:1.8
  • 操作系统:Windows 10

我已经安装并配置了环境路径和其他内容.我可以从命令提示符创建并运行项目.但是我不能从netbeans创建项目.

I have install and configured environment path and other stuffs. I can create and run project from the Command Prompt. But I can not create project from netbeans.

Warning |
Unrecognized flag: non-interactive.
Error |
Specify an application name or use --inplace to create an application in the current directory

显示此错误,以便从Netbeans创建项目.我可以运行创建的项目.我已经添加了Groovy插件.

This error is showing, to create project from Netbeans. I can run the created project though. I have already added Groovy plugin.

我该如何解决这个问题?

How can I solve this problem?

推荐答案

我认为您所做的任何操作都不正确.我的环境与您的环境非常相似(Grails版本:3.3.2,Netbeans:8.2,JDK:8u151,OS:Windows 10),并且看到相同的错误:指定应用程序名称或使用--inplace.

I don't think you are doing anything incorrectly. I have an environment very similar to yours (Grails version: 3.3.2, Netbeans: 8.2, JDK: 8u151, OS: Windows 10) and I see the same error: Specify an application name or use --inplace...

这是NetBeans 8.2的一个已知问题,已经报告了错误.请参见错误258407-创建Grails 3.1.x项目时出错.已经确认该问题在Grails 3.1.0到3.1.4之前的版本中存在,但是我在3.3.2中看到相同的问题,并且没有针对NetBeans 8.2的修复程序.

This is a known issue with NetBeans 8.2 that has already been bug reported; see Bug 258407 - Error when creating a Grails 3.1.x project. The problem has been confirmed to exist in Grails releases 3.1.0 up to 3.1.4, but I see the same issue in 3.3.2, and there is no fix for NetBeans 8.2.

但是,我使用JDK 8u151和NetBeans的DEV版本成功创建了Groovy/Grails应用程序,您可以从此处下载:

However, I successfully created a Groovy/Grails application using JDK 8u151 with a DEV release of NetBeans which you can download from here: http://bits.netbeans.org/download/trunk/nightly/latest/

请注意使用NetBeans的DEV版本附带的警告:

Note the caveat that comes with using DEV releases of NetBeans:

这些内部版本仍在开发中,可能包含缺陷 导致数据丢失.它们旨在评估新功能. 与往常一样,如果您在以下版本上使用这些构建,请确保备份您的更改 您的生产代码.

These builds are still under development and could contain defects that lead to data loss. They are meant for evaluation of new features. As always, be sure to back up your changes if you use these builds on your production code.

只要您能忍受这种情况,使用DEV版本就是(唯一)在NetBeans中创建Grails 3.x应用程序的解决方案.

As long as you can you can live with that situation, using a DEV release is your (only) solution for creating Grails 3.x applications in NetBeans.

最后一点:与NetBeans 8.2不同,NetBeans的DEV版本支持Java 9和Java 8,但是在创建Groovy/Grails应用程序时不要使用Java 9.出于完全不相关的原因,它将无法正常工作.

One final point: unlike NetBeans 8.2, DEV releases of NetBeans support Java 9 as well as Java 8, but don't use Java 9 when creating a Groovy/Grails applications. It won't work for a completely unrelated reason.

这篇关于如何为Netbeans配置Grails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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