Fix import in java and deps in pom.xml