Skip to main content

Run(-app) Grails 2.3 non-forked with reloading in IntelliJ 12

Add these VM options to the run-app to get class reloading working in IntelliJ 12

-javaagent:${GRAILS_HOME}/lib/org.springframework/springloaded/jars/springloaded-1.1.5.RELEASE.jar -Xverify:none  -noverify -Dspringloaded.synchronize=true -Djdk.reflect.allowGetCallerClass=true -Dspringloaded=profile=grails;cacheDir=/tmp/slcache

Note, that the version (1.1.5) depends on your Grails version (this is for 2.3.7) and the cache location is changed to /tmp/slcache - the default is ~/.grails/<verison>/.slcache).