Changed to java 1.7 in pom.xml