title: Spring Boot + Eclipse : why application.properties is excluded in .classpath?
body: <p>I created a basic SpringBoot 1.5.7 app from <a href="http://start.spring.io/" rel="nofollow noreferrer">http://start.spring.io/</a> (Java, Maven), and I'm working with the Eclipse project created with <code>mvn eclipse:eclipse</code>.</p>
  
  <p>I noticed that if I modify my <code>application.properties</code> file and afterwards run a Junit test (all from inside Eclipse), the new version is not used. </p>
  
  <p>Digging a little, I found that the new <code>application.properties</code> file is not copied from <code>src/main/resources/</code> to <code>target/classes/</code> by the Eclipse build. And it seems that the cause is that it's marked as "excluded" in the Eclipse project settings. Indeed, my (automatically generated) <code>.classpath</code> file says:</p>
  
  <pre><code>&lt;classpath&gt;
    &lt;classpathentry kind="src" path="src/test/java" output="target/test-classes" 
       including="**/*.java"/&gt;
    &lt;classpathentry kind="src" path="src/main/java" including="**/*.java"/&gt;
    &lt;classpathentry kind="src" path="src/main/resources" 
  excluding="**/*.java|**/application*.yml|**/application*.yaml|**/application*.properties"/&gt;
    ...
  </code></pre>
  
  <p>Of course, the file is actually copied when I run the Maven <code>spring-boot:run</code> target.</p>
  
  <p>Why, then, is it excluded by Eclipse's classpath? Is this right?</p>