Currently, there's special org.keycloak/keycloak-osgi-thirdparty bundle that repackages httpcore + httpclient and exports their packages in OSGi bundle.
The problem is that both httpcore (4.4.4 for now) and httpclient (4.5.2 for now) packages are exported using:
Same for import side from:
The packages should be correctly versioned (proper version of httpcore and httpclient) so if runtime (like Fuse) already provides:
keycloak-osgi-thirdparty is not installed. Otherwise we may end up with multiple bundles providing httpcore and httpclient packages (when httpcore packages are exported with wrong version).