mac IDEA配置Groovy SDK

mac IDEA配置Groovy SDK,第1张

idea写.groovy文件,报需要配置Groovy SDK:

点击Configure Groovy SDK,若Use library找不到groovy的sdk的话,需要手动去Create配置。

另外,在idea中无法切到/user目录下,mac按Cmd + Shift + G来切换目录。

第一个问题:

IntelliJ-IDEA已经自带了对Groovy程序的支持,你只需新建一个Maven工程,并在pom.xml中声明增加gmaven插件就行:

            <plugin>

                <groupId>org.codehaus.gmaven</groupId>

                <artifactId>gmaven-plugin</artifactId>

                <version>1.5</version>

            </plugin>

第二个问题:

关于对Grails的支持,官网上已经写的很明白:

The JetGroovy plugin is now bundled with IDEA and split into two parts. 

The Groovy language support comes with free open-source IntelliJ IDEA 

Community Edition, and the Grails/Griffon support comes with Ultimate 

edition. No separate JetGroovy releases will be made.

要包含controlle domain view的工程,需要用Grails执行两个命令:

grails create-app hello-world

cd hello-world

grails integrate-with --intellij


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/bake/7889680.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-11
下一篇2023-04-11

发表评论

登录后才能评论

评论列表(0条)

    保存