$ cd ~/.m2 #.m2ディレクトリに移動
$ touch settings.xml #.m2の下にsettings.xmlがなければ作成
$ vi settings.xml #公式サイトを参考にしてsettings.xmlを記述(Proxiesのところ)
$ cat settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>プロキシサーバのアドレス</host>
<port>プロキシサーバのポート番号</port>
<username></username> # 今回はなかったが必要に応じて記述
<password></password> # 今回はなかったが必要に応じて記述
<nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
</proxy>
</proxies>
</settings>
参考