I thought I’d throw this out there for anyone that might find this convenient:

As Maven users know, local maven settings reside in $HOME/.m2/settings.xml

However, sometimes I use some settings/config for when I’m working on open source projects that assume Maven central + Sonatype signature defaults, and I use different ones when working on work (closed source) projects that assume our company Artifactory server and other permissions.

Ordinarily you’d modify the settings.xml file every time you wanted to switch settings – comment out one profile, enable another, comment out (or uncomment) the <mirror> setting, whatever. This is a big pain for me during the day when I switch back and forth, so I wrote a bash script that allows me to easily switch between configs using symbolic links: