diff options
Diffstat (limited to 'jh-mvn-localrepo.sh')
-rw-r--r-- | jh-mvn-localrepo.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jh-mvn-localrepo.sh b/jh-mvn-localrepo.sh index a126613..32a91f0 100644 --- a/jh-mvn-localrepo.sh +++ b/jh-mvn-localrepo.sh @@ -6,4 +6,8 @@ if [[ $# > 0 ]]; then exit 1 fi -xml sel -T -t -v "//*[local-name()='localRepository']" -n /etc/maven/settings.xml +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 |