title: "doubled POM" error when running m2e in eclipse
body: <p>We recently experience the problem that POMs in the local repository are broken in a special way: The content of the POM appears twice, or, in some cases, just some end part of the POM appears twice. So these POMs look like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    ...
  &lt;/project&gt;
    ...
  &lt;/project&gt;
  </code></pre>
  
  <p>Obviously, these POMs cannot be read correctly.</p>
  
  <p>One case in which the problem appears often is the following workflow:</p>
  
  <ol>
  <li>Remove the local repository</li>
  <li>Start Eclipse with an existing workspace</li>
  <li>(Immediately) start a build inside Eclipse.</li>
  </ol>
  
  <p>My guess is that m2e does not properly handle concurrency. The automatic download of dependencies in the background and the build try to download the same POMs at roughly the same time.</p>
  
  <p>Is my analysis correct?</p>
  
  <p>If so, can I do anything about it?</p>
  
  <p>If not, what is the explanation?</p>
  
  <p>EDIT</p>
  
  <p>It seems that the error also occurs if one only starts Eclipse with a lot of projects in the workspace (without starting a in-Eclipse build).</p>