title: Grails app out of sync when using IntelliJ 12.1.2 and Maven projects
body: <p>I have a project that contains amongst other things, a Groovy common code module and a separate Grails web-app module.  I made the change from Eclipse to IntelliJ 12.1.2 and it has been a HUGE improvement.  Everything seems to be working much better - for example, when I add fields to a class in the Groovy project, I instantly see them available in the IntelliSense in the Grails project.  Also, another great benefit is that I was finally able to get debugging of the Grails app working in the IDE (Hooray for not having to litter the code with print statements everywhere!). </p>
  
  <p>The problem that I'm having, however, is that it appears that the code that is run when I do a Run->Run 'Grails:FooProj' or Run->Debug 'Grails:FooProj' is out of sync with the saved code.  For example, I can add a log statement to the code and then try to run it, but it doesn't show up.  It's like it's using a cached version of the jar/wars. </p>
  
  <p>One thing of note is that for my run/debug configs I had to check the "Work offline" box of the Maven Settings so that it would not go out to the nexus to pull down jars.  I want it to use the local changes that I have made to the code and not what was published. </p>
  
  <p>How do I get IntelliJ to use the local code changes that I have made when debugging the web-app?  I can go to the console and do a <code>mvn clean install</code> on the common code project and it works fine in IntelliJ after that, but I don't want to drop to the console every time I want to debug my app.</p>