Maybe the simplest is to change your default compiler to 1.8.
i feel to many places to change makes it more error prone as we may miss in any one of above 5 places namely
1. eclipse java compiler
2. eclipse jre runtime(can i give jdk1.8 which any way has jre1.8 built in that right?? please advise)
3. eclipse project jre
4. windows laptop JAVA_HOME
5. pom.xml configuration entry
Eclipse is itself a Java program, although I don't think it uses JAVA_HOME.
It's easy to add new JDKs to Eclipse. Just go to the dialog that lists your JDKs, click the "Add" button, point to the folder of the JDK to add and give it a name so that it can be selected as a project build option.
To change which version Eclipse uses to launch itself with, you have to change eclipse.ini
I'm in Eclipse Mars and it is Java 1.8 ready. I would advise upgrading.