add maven compiler plugin and specify the java version of source code to 1.7