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 changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the project was using Java 1.5 (I described these build errors earlier in this question.)
I'm going to delete the project and try again but I want to make sure this time that it uses Java 1.6 from the start to see if this eliminates the build problems.
How do I make sure the project uses Java 1.6 when I import it?