简体   繁体   English

Grails 3.0.1在Eclipse中添加显示错误指定的目录似乎不是Grails安装

[英]Grails 3.0.1 add in Eclipse show error Specified directory does not appear to be a Grails installation

When I try to install/import Grails 3.0.1 in Eclipse I get error message "Specified directory does not appear to be a Grails installation". 当我尝试在Eclipse中安装/导入Grails 3.0.1时,出现错误消息“指定的目录似乎不是Grails安装”。

I already have installed Groovy Compiler 2.4.3. 我已经安装了Groovy Compiler 2.4.3。 but still get same error message. 但仍然会收到相同的错误消息。

How I can install Grails 3.0.1 in Eclipse 4.4? 如何在Eclipse 4.4中安装Grails 3.0.1?

At grails folder you can put a file "build.properties", 在grails文件夹中,您可以放置​​一个文件“ build.properties”,

/grails-3.0.1/build.properties
             /install
             /license
             /.......

the content of this file is a single line "grails.version=3.0.1", without quotes. 该文件的内容为单行“ grails.version = 3.0.1”,不带引号。 :-) :-)

Now eclipse will recognize it as Grails installation. 现在,eclipse会将其识别为Grails安装。

Regards 问候

Grails 3 is very different from earlier versions of Grails, in particular being based on Spring Boot. Grails 3与早期版本的Grails有很大不同,特别是基于Spring Boot。 It will be a while before the IDEs have support for Grails 3. Eclipse will probably not have support for Grails 3 as 3.6.4 has been announced as the last release of GGTS and the Grails and Groovy tooling now that Pivotal has abandoned Grails and Groovy. IDE需要一段时间才能支持Grails3。Eclipse可能将不再支持Grails 3,因为3.6.4已被宣布为GGTS和Grails and Groovy工具的最新版本,而Pivotal已放弃了Grails和Groovy。 。

I use the lattest ggts from sping (3.6.4) the gradle plugin (installed over the spring dashboard) and the latest snapshot release of the groovy plugin for eclipse to get a groovy 2.4 compiler. 我使用了sping(3.6.4)的gratest插件(安装在spring仪表板上)和groovy插件的最新快照发行版(用于Eclipse)来获得groovy 2.4编译器。

With this setup import your grails3 application as gradle application works for me. 使用此设置,可以将您的grails3应用程序导入,因为gradle应用程序对我有用。

Here are the steps for working with Grails 3 in Eclipse. 以下是在Eclipse中使用Grails 3的步骤。 1) Get latest grails 3.X version and setup in the system. 1)在系统中获取最新的grails 3.X版本和设置。 2) Now create grails app using command line. 2)现在使用命令行创建grails应用。 3) Install Gradle plugin in eclipse if not already there. 3)如果没有的话,在Eclipse中安装Gradle插件。 4) Import project as Gradle in eclipse, Gradle will download all required dependencies. 4)在Eclipse中将项目导入为Gradle,Gradle将下载所有必需的依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM