title: Intellij + springboot + maven + spring-loaded
body: <p>I have an issue where debugging stops working in Intellij, when applying Spring-loaded as a dependency to the maven plugin.</p>
  
  <p><strong>Situation 1 (working):</strong></p>
  
  <p>Using a autogenerated spring-boot maven (pom.xml) file with a declared "Spring-boot-maven-plugin" I can debug my my app using the debug-maven command in intellij. The pom file looks like this:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p><strong>Situation 2 (not working):</strong></p>
  
  <p>Following the guide lines here: <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/howto-hotswapping.html">spring-boot-hot-swapping</a> one should add a dependency for spring-loaded, to make use of spring-loaded. The pom file now looks like:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                      &lt;artifactId&gt;springloaded&lt;/artifactId&gt;
                      &lt;version&gt;1.2.3.RELEASE&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>Debugging the same run-configuration as before does not work. The break-points simply never turns into a "checkmark"  and the code never suspends. Code is now hotswapping as one would expect... If I remove the plugin-dependency again, debugging starts working again...</p>
  
  <p>Please help me make situation two work!</p>
  
  <p>IntelliJ 14.1.3 Ultimate, Java 7, Spring boot 1.2.4, Spring loaded 1.2.3</p>