
JDK 1.8 have some more enrich feature which doesn't support to many eclipse.

Selecting the projects and right-clicking for Maven -> Update Project, will set the system library to the path of the installed JDK, in case the paths are broken (because you installed a new JDK or imported from another computer, etc.) and set the JDK compliance according to the maven source and target setting in the pom. Rather than updating one by one the JRE library, let Maven do it for you.

Updating JRE library that is broken in many projects at once (with Maven) Also, for the compiled classes to be compatible with JVM 1.8, the –target value should be 1.8. If we want to use the Java 8 language features the –source should be set to 1.8. You can select the level 1.6, 1.7, 1.8 by configuring the maven-compiler-plugin source and target attributes, like this Īnd ideally, if you have a parent pom, you can do it for all the modules (Eclipse projects) in the parent pom, in one single place.

