mavenize project, adapt to Java7