
点击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-worldcd hello-world
grails integrate-with --intellij
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)