What are your compiler settings? What are your source _and _target settings of the maven-compiler-plugin plugin?