title: M2E and having maven generated source folders as eclipse source folders
body: <p>I have a maven project in eclipse and have maven goals that run annotation processors to generate code. The output folder for this code is <code>target/generated-sources/apt</code>.</p>
  <p>In order for Eclipse to see this generated code I need to add <code>target/generated-sources/apt</code> as a source folder to the Eclipse project.</p>
  <p>However, this causes there to be an error of type &quot;Maven Configuration Problem&quot; saying</p>
  <blockquote>
  <p>Project configuration is not up-to-date with <code>pom.xml</code>. Run project
  configuration update</p>
  </blockquote>
  <p>I think I understand why this is the case as Eclipse has a different set of source folders to Maven's set. But I need this different set, as I need Eclipse to be able to see the <code>generated</code> source folders...</p>
  <p>When doing a pure Maven built, these source folders will be included in the build, by Maven.</p>
  <p>BTW, I have upgraded to the official Eclipse release of the Maven Eclipse plugin, m2e 1.0 - what used to be m2eclipse. I'd like to see if I can find a work around/solution to this with the m2e plugin before I have to go back to the old m2eclipse version.</p>