Modifying pom.xml to solve some dependency problems