Multiple fixes to dependencies in pom.xml
Removed deprecated classes of HttpClient