title: Lambda error during maven build
body: <p>I am using Maven build to build my project(using Eclipse IDE).
  I have put jdk1.8 as default jdk, but still, I am getting an error as the source is 1.6.
  Is there a configuration problem I am missing out? Please let me know?</p>
  
  <pre><code>   (use -source 8 or higher to enable lambda expressions)
  </code></pre>
  
  <p>1. "clean install" as goals in "Run Configurations" in Eclipse.</p>
  
  <p>2.pom.xml file</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.mastercard.ayman&lt;/groupId&gt;
    &lt;artifactId&gt;Spring_MVC&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.4.2.RELEASE&lt;/version&gt;
    &lt;/parent&gt;
    &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
            &lt;artifactId&gt;spring-data-rest-webmvc&lt;/artifactId&gt;
            &lt;version&gt;3.0.7.RELEASE&lt;/version&gt;
           &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;spring-libs-release&lt;/id&gt;
              &lt;name&gt;Spring Releases&lt;/name&gt;
              &lt;url&gt;https://repo.spring.io/libs-release&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <ol start="3">
  <li>Compiler is JavaSE-1.8</li>
  </ol>