title: Plugin org.apache.maven.plugins:maven-compiler-plugin or one of its dependencies could not be resolved
body: <p>I'm having some issues to configure properly my eclipse to work with maven.</p>
  
  <p>I create a new project, this one is correctly build with maven in command line (<code>mvn install</code>), but in Eclipse I got this error:</p>
  
  <blockquote>
    <p>CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-settings:jar:2.2.1: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-settings:pom:2.2.1 from <a href="http://repo.maven.apache.org/maven2" rel="noreferrer">http://repo.maven.apache.org/maven2</a> was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-settings:pom:2.2.1 from/to central : NullPointerException pom.xml /test   line 9  Maven Project Build Lifecycle Mapping Problem</p>
  </blockquote>
  
  <p>Here is my settings.xml conf :</p>
  
  <pre><code>&lt;proxy&gt;
    &lt;active&gt;true&lt;/active&gt;
    &lt;protocol&gt;http&lt;/protocol&gt;
    &lt;username&gt;myuser&lt;/username&gt;
    &lt;password&gt;$mymdp&lt;/password&gt;
    &lt;host&gt;myhost&lt;/host&gt;
    &lt;port&gt;8080&lt;/port&gt;
    &lt;nonProxyHosts&gt;some.host.com&lt;/nonProxyHosts&gt;
  &lt;/proxy&gt;
  ....
  
  &lt;repository&gt;
       &lt;id&gt;central&lt;/id&gt;
       &lt;name&gt;central repo m2&lt;/name&gt;
       &lt;url&gt;http://central.maven.org/maven2&lt;/url&gt;
  &lt;/repository&gt;
  </code></pre>
  
  <p>I choose the correct maven installation (in Preference -> Maven -> Install)</p>
  
  <p>I also direct my user settings on the correct settings.xml (Preferences -> Maven -> User Settings)</p>
  
  <p>But I still got this error in Eclipse and everything goes well with maven command line. Do you have and idea?</p>