summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-30 19:34:24 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-30 19:34:24 -0400
commit8d81be0dcd7ab9d14a88f0e981046f50e67526fe (patch)
treefbd3ad58ea42d638b3560c1fd251e37ae3df4a7b
parentddfbf73a5f675927f46da73a671a08a4f0545349 (diff)
have mvn-localrepo fall back to a default if settings.xml doesn't existv0.3.3
-rw-r--r--jh-mvn-localrepo.sh6
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