title: Eclipse - Importing an existing Maven project gives Unsupported IClasspathEntry kind=4 Error
body: <p>I have an existing Maven project with correct pom.xml file. I am able to build the project from command line <code>mvn install</code>. However, when I import the project as existing Maven Project in eclipse, I get <code>Unsupported IClasspathEntry kind=4</code> error in eclipse. </p>
  
  <p>Further, some of the project's properties are not correctly reflected after the import - E.g. it is a web project, but I do not see <code>Deployed Resources</code> under the project structure. I can still see that little <code>M</code> on the project icon indicating that it is a maven project. </p>
  
  <p>I tried updating the project with <code>Alt+F5</code> and refreshed it with <code>F5</code> as well. Still the same error.</p>
  
  <p>I also tried the approach mentioned on this SO post </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/10564684/how-to-fix-error-updating-maven-project-unsupported-iclasspathentry-kind-4">How to fix error &quot;Updating Maven Project&quot;. Unsupported IClasspathEntry kind=4?</a></p>
  </blockquote>
  
  <ul>
  <li>i.e. Disable maven nature, eclipse:clean, re-enable maven nature. Still the same error when I enable maven nature. </li>
  </ul>
  
  <p>Eclipse also shows an error in my pom.xml, but <code>mvn install</code> works fine from cmd line.</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources (default-cli)
  </code></pre>
  
  <p>I am not sure if these 2 errors are related or not.</p>
  
  <p>My setup:</p>
  
  <ul>
  <li>Windows 7 Pro (64 bit) </li>
  <li>JDK 1.6.0_31 (32 bit) </li>
  <li>Eclipse Juno 4.2  </li>
  <li>Maven 3.0.5</li>
  <li>m2e 1.4.0</li>
  </ul>