1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash . /usr/bin/jh if [[ $# > 0 ]]; then usage exit 1 fi if [ -e /etc/maven/settings.xml ]; then xml sel -T -t -v "//*[local-name()='localRepository']" -n /etc/maven/settings.xml else echo /usr/share/maven/repository fi