Updated pom files and compiler to jdk 7