I'm trying to add skip certificate checks for https requests in my plugin for development tests, for that I use http-components httpClient artifact version 4.x
Seems like every API call will compile fine, but during runtime I always get errors similar to this one:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory
How can I solve this issue and make other java program (Jenkins) who uses my plugin, to avoid such thing from happening?