
Note that since the 3.8.0 version of the Maven compiler plugin, you can actually specify the release version of Java rather than source and target: To force Eclipse and the Maven compiler plugin to have JDK 1.8 compliance on your new projects, simply add the following to your POM file: Īn alternate, albeit slightly more verbose approach to tell Eclipse and Maven to use Java 8 or newer compilers is to configure the Apache Maven plugin: The build tool always has a simple resolution on offer.


Of course, there is a fairly simple answer to this problem.

Eclipse Maven JDK 1.8 compliance and support
