update maven-compiler-plugin version to 3.1, and use java 1.7