title: Maven suddenly wants src/ instead of src/main/java
body: <p>I'm using Maven 3.3.3 together with Eclipse Mars and m2e. Yesterday, I created a new Java project and converted it into a Maven one.</p>
  
  <p>Afterwards, the classpath contained only <code>src</code> instead of the standard <code>src/main/java</code>. I was surprised but I simply created the missing folders and ran m2e's "Update Project". This didn't solve the problem; m2e still insisted on using only <code>src</code>.</p>
  
  <p>So I edited the classpath manually to end up with with the usual</p>
  
  <pre><code>src/test/java
  src/test/resources
  src/main/java
  src/main/resources
  </code></pre>
  
  <p>When I try m2e's "Update Project" now, I get this error:</p>
  
  <pre><code>Cannot nest 'foo/src/test/java' inside 'foo/src'. To enable the nesting, exclude 'test/' from 'foo/src'
  </code></pre>
  
  <p><em>sigh</em> I went to the command line next and ran <code>mvn eclipse:eclipse</code> to get this classpath:</p>
  
  <pre><code>src/test/java
  src/test/resources
  src
  src/main/resources
  </code></pre>
  
  <p>Now, I'm completely stumped. Why is that happening?</p>