fix pom for Java 7 and fix param passing issue
merged head changes