I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default Preferences->Java->Installed JREs
.
When I
One more place where this can go wrong is in the project specific settings, in Eclipse.
project properties: click your project and one of the following:
click on "Java Compiler"
Because of client requirements we had them enabled to keep our projects in 1.6. When it was needed to upgrade to 1.7, we had a hard time because we needed to change the java version all over the place: