If you maven project continually reverts to Java 1.5 even though you have configured the build path then you will need to update your pom.xml file to specify the compiler source and target. See blow.
pom.xml
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>