Proper rewrite of pom.xml