Fixing dependency issues in pom.xml