Fixing some dependencies bugs on pom.xml file