title: Maven Compile java error diamond operator is not supported
body: <p>i am using maven with eclipse , when Compileling the project it giving the following error </p>
  
  <pre><code> [INFO] -------------------------------------------------------------
  [ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------
  [ERROR] /D:/copay/CopayMobilePassBook/src/main/java/com/cherry/copay/mpassbook/process/impl/AccountsProcessImpl.java:[17,55] diamond operator is not supported in -source 1.5
    (use -source 7 or higher to enable diamond operator)
  [ERROR] /D:/copay/CopayMobilePassBook/src/main/java/com/cherry/copay/mpassbook/process/support/ReversalProcessSupport.java:[89,88] diamond operator is not supported in -source 1.5
    (use -source 7 or higher to enable diamond operator)
  [INFO] 2 errors 
  </code></pre>
  
  <p>But installed version of JDK is 8
  project -> right click -> properties ->project facts  -> java version is 1.8</p>
  
  <p>what is the problem with my maven configuration</p>