title: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain
body: <p>I am using m2e to build a java project. I need to use <strong>JAVA VERSION 1.6</strong> . So i am trying to configure toolchains plugin to achieve it. by referring the below link. </p>
  
  <p><a href="https://maven.apache.org/guides/mini/guide-using-toolchains.html" rel="nofollow noreferrer">https://maven.apache.org/guides/mini/guide-using-toolchains.html</a></p>
  
  <p>But in eclipse it is throwing the below error.</p>
  
  <blockquote>
    <p>Plugin execution not covered by lifecycle configuration:
    org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain
    (execution: default, phase: validate) pom.xml /Replenishment  line
    98    Maven Project Build Lifecycle Mapping Problem</p>
  </blockquote>
  
  <p>I referred the <a href="http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html" rel="nofollow noreferrer">link</a>  but i did not get a proper clarity. Below is the code snippet used for configuring tool chains plugin.</p>
  
  <p>IN pom.XML</p>
  
  <pre><code>&lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-toolchains-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.1&lt;/version&gt;
          &lt;lifecycleMappingMetadata&gt;
                 &lt;pluginExecutions&gt;
                    &lt;pluginExecution&gt;
                        &lt;pluginExecutionFilter&gt;
                            &lt;groupId&gt;
                                org.apache.maven.plugins
                            &lt;/groupId&gt;
                            &lt;artifactId&gt;
                                maven-toolchains-plugin
                            &lt;/artifactId&gt;
                            &lt;versionRange&gt;
                                [1.1,)
                            &lt;/versionRange&gt;
                            &lt;goals&gt;
                                &lt;goal&gt;toolchain&lt;/goal&gt;
                            &lt;/goals&gt;
                        &lt;/pluginExecutionFilter&gt;
                        &lt;action&gt;
                            &lt;ignore&gt;&lt;/ignore&gt;
                        &lt;/action&gt;
                    &lt;/pluginExecution&gt;
                &lt;/pluginExecutions&gt;
              &lt;/lifecycleMappingMetadata&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;toolchain&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
            &lt;toolchains&gt;
              &lt;jdk&gt;
                &lt;version&gt;1.6&lt;/version&gt;
                &lt;vendor&gt;sun&lt;/vendor&gt;
              &lt;/jdk&gt;
            &lt;/toolchains&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>and my toolchains.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF8"?&gt;
  &lt;toolchains&gt;
    &lt;!-- JDK toolchains --&gt;
    &lt;toolchain&gt;
      &lt;type&gt;jdk&lt;/type&gt;
      &lt;provides&gt;
        &lt;version&gt;1.6&lt;/version&gt;
        &lt;vendor&gt;sun&lt;/vendor&gt;
      &lt;/provides&gt;
      &lt;configuration&gt;
        &lt;jdkHome&gt;D:\POC\jdk1.6.0_31&lt;/jdkHome&gt;
      &lt;/configuration&gt;
    &lt;/toolchain&gt;
  
  &lt;/toolchains&gt;
  </code></pre>