From 8d81be0dcd7ab9d14a88f0e981046f50e67526fe Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 30 Oct 2012 19:34:24 -0400 Subject: have mvn-localrepo fall back to a default if settings.xml doesn't exist --- jh-mvn-localrepo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf