use java 1.7
fix maven support