Assuming your project is built with Maven, adding this to your pom.xml should take care of that issue:
pom.xml
<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.2</version></dependency>