我有一个带有pom.xml
的Grails项目,该项目被IntelliJ视为Maven项目。
当我使用CTRL + ALT + g快捷键执行Grails命令时,Intellij会将其定向到Maven。
这对于大多数Grails命令都可以正常工作。
问题是某些命令无法执行,例如-run-app
将项目视为Maven项目时,如何使用Grails控制台从Intellij IDEA运行Grails命令。
最佳答案
我创建了bug。此评论对我有帮助:
To run Grails application without maven you can comment grails maven plugin in pom.xml or disable maven plugin.
在pom.xml中评论插件后,一切正常
关于grails - Intellij使用 “mvn grails:exec”而不是原始grails命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10916713/