Added Java compiler version in maven pom file.