To use a proxy for your maven builds just a this to your ~/.m2/settings.xml:
.
.
http
true
http
username
secret
your.fancy.proxy.com
4221
local.net|some.host.com
https
true
https
username
secret
your.fancy.proxy.com
4221
local.net|some.host.com
.
.
See also the guide to using proxies in the maven documentation.
Information about Data protection