title: IntelliJ does not recompile/build maven project
body: <p>I am running into problems when using IntelliJ for Spring development. At first, the IntelliJ <code>build</code> command works fine and picks up changes I make to the source code. At some point, this stops working and I can only compile my sources through maven, as the <code>build</code> or <code>rebuild project</code> commands seem to do nothing anymore.</p>
  <p>I am confused, as it works as desired at the start but then stops working at some point.</p>
  <p><strong>Steps to recreate</strong>:</p>
  <ul>
  <li><p>Create a new Spring project using Spring Initializr:</p>
  <p><code>curl https://start.spring.io/starter.zip -d type=maven-project -d javaVersion=11 -o demo.zip &amp;&amp; unzip demo.zip</code></p>
  </li>
  <li><p>Start IntelliJ from the command line in that folder, this will auto-import the project: <code>idea64 .</code></p>
  </li>
  <li><p>Write a log message in the main class and run the project using <code>Run-&gt;Run 'DemoApplication'</code>. This compiles the sources to the <code>target</code> folder and starts up the project. You should see the log message</p>
  </li>
  <li><p>Alter the log message, run again and the changes should be visible (<em>so far so good</em>)</p>
  </li>
  <li><p>Now re-compile the sources via maven command <code>mvn compile</code> and restart IntelliJ</p>
  </li>
  <li><p>From now on, running <code>build</code> or <code>rebuild project</code> within IntelliJ will not pick up any changes I make to any of my source files. In fact both commands don't seem to do anything at all. I have to compile via maven in order to properly compile my sources</p>
  </li>
  </ul>
  <p>I tried a few things to overcome this problem, but without success:</p>
  <ul>
  <li>Invalidated caches/restart</li>
  <li>Checked <code>project settings</code> for <code>Project Compiler Output</code> and set it to <code>&lt;project-folder&gt;/target</code></li>
  <li>Checked <code>project settings/modules</code> for <code>output path</code> and <code>test output path</code> and put in the path as above</li>
  <li>Used <code>Reimport All Maven Projects</code></li>
  <li>Deleted the <code>.idea</code> folder within the project folder. This seems to work, but is very inconvenient and surely no intended behavior. Also it breaks again if I recreate the steps detailed above.</li>
  </ul>
  <p>Is anyone experiencing similar problems and/or has a solution?</p>