The issue with the standard Jersey 2.x proxy configuration is it doesn't allow nonProxyHosts option. It doesn't allow to separate http and https calls too, but these limitations were ok for me.
In maven3 pom.xml:
<properties>
<jersey.version>2.30.1</jersey.version>
</properties>