i am using maven with eclipse , when Compileling the project it giving the following error
[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
But installed version of JDK is 8 project -> right click -> properties ->project facts -> java version is 1.8
what is the problem with my maven configuration