Remove redundant elements from pom.xml files