remove unnecessary elements in poms. fix some poms