If I create default empty based on no archetype Maven
project in Eclipse
, it will be based on J2SE-1.5
.
If you want to make sure that newly created projects in Eclipse use another default java version than Java 1.5, you can change the configuration in the maven-compiler-plugin.
In the following lines:
change the default-value to 1.7 or 1.8 or whatever you like.
From now on, all new Maven projects use the java version you specified.
Information is from the following blog post: https://sandocean.wordpress.com/2019/03/22/directly-generating-maven-projects-in-eclipse-with-java-version-newer-than-1-5/