突然间,我在 IntelliJ 中收到此错误,该项目在 IDE 之外运行良好。我也可以很好地创建和运行新项目。
IDEA hook: Grails not found!
java.lang.NullPointerException
at org.jetbrains.groovy.grails.rt.Agent$2.run(Agent.java:99)
at java.lang.Thread.run(Thread.java:619)
此错误之前有一些可疑的行:
[INFO] task-segment: [grails:exec] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [grails:exec {execution: default-cli}]
[FATAL ERROR] org.grails.maven.plugin.GrailsExecMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.grails:grails-maven-plugin:1.3.7]