Skip to content

Instantly share code, notes, and snippets.

@aeris
Created September 2, 2012 19:48
Show Gist options
  • Save aeris/3603897 to your computer and use it in GitHub Desktop.
Save aeris/3603897 to your computer and use it in GitHub Desktop.
Maven settings activator
#!/bin/bash
PROFILE=$1
MVN_HOME=~/.m2
SETTINGS_FILE=settings.xml
SETTINGS="${MVN_HOME}/${SETTINGS_FILE}"
if [ -z "$1" ]; then
rm -f "${SETTINGS}"
else
ln -sf "$1-${SETTINGS_FILE}" "${SETTINGS}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment