Depending on your current operating system, you will need to create/edit the .m2/settings.xml file.
Windows users will find the settings.xml file by issuing the following command in Command Prompt:
echo %USERPROFILE%\.m2\settings.xml
Mac operating system users can edit/create the settings.xml file in ~/.m2/settings.xml.
Place the following content into the settings.xml ...