title: Maven and eclipse: remove JRE System Library
body: <p>I am building a project against the <a href="http://www.nsicom.com/Default.aspx?tabid=138" rel="nofollow">CrEme VM</a> Library. I want to configure maven and eclipse, to build only against this JAR. But m2eclipse "Update Project configuration" automatically adds the "JRE System library". I can fix it, by removing it in eclipse project classpath, but i want to configure it only in the pom.xml (and not checkin the eclipse settings). </p>
  
  <p>I tried to do this: </p>
  
  <pre><code>// ... 
  &lt;dependency&gt;
     &lt;groupId&gt;ch.sbb.cis-infra.mobile&lt;/groupId&gt;
    &lt;artifactId&gt;vmclasses&lt;/artifactId&gt;
    &lt;version&gt;1.0.0&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  // ... 
  &lt;build&gt;
   &lt;plugins&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;configuration&gt;
          &lt;source&gt;1.3&lt;/source&gt;
          &lt;target&gt;1.3&lt;/target&gt;
          &lt;meminitial&gt;128m&lt;/meminitial&gt;
          &lt;maxmem&gt;512m&lt;/maxmem&gt;
          &lt;debug&gt;off&lt;/debug&gt;
          &lt;compilerArguments&gt;
                  &lt;bootclasspath&gt;''&lt;/bootclasspath&gt;
              &lt;/compilerArguments&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
   &lt;/build&gt;
  </code></pre>
  
  <p>But still, m2eclipse adds the "JRE System Library [JRE_1.3]". </p>
  
  <p>Compilation on command line is correct, but in eclipse I can't see compile problems. 
  <strong>How can I remove the JRE in eclipse using the pom.xml configuration?</strong></p>
  
  <p>(Eclipse Helios SR2, m2e plugin 0.12.1)</p>