title: Missing tools.jar in local repository breaks m2eclipse
body: <p>The problem I'm experiencing is that eclipse can't resolve any of the dependencies of my project. This causes problems because even though the dependencies seem to work alright when coding (I get autocompletion) I still get a huge list of errors referring to missing artifacts.</p>
  
  <p>When filtering these, I found the following:</p>
  
  <blockquote>
    <p>The container 'Maven Dependencies' references non existing library '/home/[...]/.m2/repository/com/sun/tools/1.5.0/tools-1.5.0.jar'</p>
  </blockquote>
  
  <p>It seems that this dependency was introduced by struts2, who have a profile set up as follows in their pom:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun&lt;/groupId&gt;
      &lt;artifactId&gt;tools&lt;/artifactId&gt;
      &lt;version&gt;1.5.0&lt;/version&gt;
      &lt;scope&gt;system&lt;/scope&gt;
      &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>That systemPath resolves and so I don't see a reason why this would be causing trouble. In any case, is there a way to tell eclipse that this m2eclipse dependency is a system dependency that is not found in the local repository?</p>