Corrected POM and updated project to support jdk7