突然間,我在IntelliJ中得到這個錯誤,該項目在IDE以外運行良好。我也可以創建並運行新項目。IntelliJ中Grails項目的同步錯誤
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)
此錯誤是由一些可疑行precedded:
[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]
什麼是IDEA版本和Grails版本? – Sergey 2012-08-16 07:00:12
謝爾蓋,我一直在IDEA 11.1.3上運行Grails 1.3.7一段時間沒有問題。今天,我試圖安裝一個旨在在Grails 2.0+上運行的插件。安裝失敗並回滾插件,但IDEA從未恢復。 – dbrin 2012-08-16 15:54:39