summaryrefslogtreecommitdiff
path: root/jh-mvn-localrepo.sh
blob: 32a91f0f58c5378193fe23a1e31585bea3dc1307 (plain)
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