Fixed ClassCastException when using a proxy
Updated maven version.