fix import in java and deps in pom.xml