Added options to allow publishing only the library jars.

Change-Id: I9d90d6e807bca1a36356f2bd5ea99238e81d72eb
diff --git a/tools/build/onos-publish b/tools/build/onos-publish
index 482b828..bdcf02f 100755
--- a/tools/build/onos-publish
+++ b/tools/build/onos-publish
@@ -3,7 +3,17 @@
 # Publishes ONOS artifacts to a Maven repository (local or remote)
 # -----------------------------------------------------------------------------
 
+options=""
+while getopts lh? o; do
+    case "$o" in
+        l) options="$options -l";;
+        *) echo "usage: $(basename $0) [-l] [repoURL]" >&2; exit 1;;
+    esac
+done
+let OPC=$OPTIND-1
+shift $OPC
+
 REPO_URL=$1
 CATALOG=/tmp/onos.$$.catalog
 
-onos-publish-catalog $CATALOG && onos-upload-artifacts.py $CATALOG $REPO_URL
\ No newline at end of file
+onos-publish-catalog $options $CATALOG && onos-upload-artifacts.py $CATALOG $REPO_URL
\ No newline at end of file