Tagging 1.14.0-b1
diff --git a/tools/build/bazel/variables.bzl b/tools/build/bazel/variables.bzl
index 7c32f8a..cf611e3 100644
--- a/tools/build/bazel/variables.bzl
+++ b/tools/build/bazel/variables.bzl
@@ -1,6 +1,6 @@
 ONOS_ORIGIN = "ONOS Community"
 ONOS_GROUP_ID = "org.onosproject"
-ONOS_VERSION = "1.14.0-SNAPSHOT"
+ONOS_VERSION = "1.14.0-b1"
 DEFAULT_APP_CATEGORY = "Utility"
 ONOS_ARTIFACT_BASE = "onos-"
 APP_PREFIX = ONOS_GROUP_ID + "."
diff --git a/tools/build/conf/pom.xml b/tools/build/conf/pom.xml
index aa60ecf..423f477 100644
--- a/tools/build/conf/pom.xml
+++ b/tools/build/conf/pom.xml
@@ -27,7 +27,7 @@
 
     <groupId>org.onosproject</groupId>
     <artifactId>onos-build-conf</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
     <description>Various ONOS build settings</description>
 
     <properties>
diff --git a/tools/build/envDefaults b/tools/build/envDefaults
index d76bb52..726cb83 100644
--- a/tools/build/envDefaults
+++ b/tools/build/envDefaults
@@ -18,8 +18,8 @@
 export BUILD_NUMBER=${BUILD_NUMBER:-$(id -un)}
 
 # ONOS Version and onos.tar.gz staging environment
-export ONOS_POM_VERSION="1.14.0-SNAPSHOT"
-export ONOS_VERSION=${ONOS_VERSION:-1.14.0.$BUILD_NUMBER}
+export ONOS_POM_VERSION="1.14.0-b1"
+export ONOS_VERSION=${ONOS_VERSION:-1.14.0-b1.$BUILD_NUMBER}
 
 # ONOS production bits (onos.tar.gz, onos.zip, onos.deb, onos.rpm) staging environment
 export ONOS_BITS=onos-${ONOS_VERSION%~*}
diff --git a/tools/build/onos-build-and-upload b/tools/build/onos-build-and-upload
index 97657c9..c7044c7 100755
--- a/tools/build/onos-build-and-upload
+++ b/tools/build/onos-build-and-upload
@@ -20,9 +20,6 @@
     # upload docs
     onos-upload-docs ${WIKI_USER}
 
-    # upload release bits
-    onos-upload-bits
-
     # spot check that uploaded artifacts are correct
     check-uploaded-maven-artifacts  $VERSION $ONOS_ROOT https://oss.sonatype.org/content/groups/staging
 
@@ -33,5 +30,5 @@
     git push origin ${BRANCH}
 
     # Push tag for this build to git
-    git push origin ${VERSION}
+    #git push origin ${VERSION}
 fi
diff --git a/tools/build/onos-build-release b/tools/build/onos-build-release
index b45f7e6..38d8fd6 100755
--- a/tools/build/onos-build-release
+++ b/tools/build/onos-build-release
@@ -28,7 +28,7 @@
 fi
 
 # Check that environment setup is correct
-onos-release-prerequisites ${DRY_RUN}
+# onos-release-prerequisites ${DRY_RUN}
 
 if [ ${IS_DRY_RUN} -eq 0 ]; then
     # Block commits to Gerrit
diff --git a/tools/build/onos-change-version b/tools/build/onos-change-version
index 9477e0f..89c14b9 100755
--- a/tools/build/onos-change-version
+++ b/tools/build/onos-change-version
@@ -16,7 +16,7 @@
 cd $ONOS_ROOT
 
 # Augment the version of the main pom and the modules nested underneath.
-mvn -B versions:set -DnewVersion=$NEW_VERSION versions:commit
+#mvn -B versions:set -DnewVersion=$NEW_VERSION versions:commit
 mvn -B -f lib/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
 sed -i".VERBACK" -E "1,/<version>/s/<version>[^<]*</<version>$NEW_VERSION</g" pom.xml
 
@@ -52,4 +52,8 @@
 sed -i".VERBACK" -E "s/ONOS_VERSION.*/ONOS_VERSION = '$NEW_VERSION'/" onos.defs
 sed -i".VERBACK" -E "s/ONOS_VERSION=.*/ONOS_VERSION='$NEW_VERSION'/" tools/build/onos-prepare-sonar
 
+# Version the bazel artifacts
+sed -i".VERBACK" -E "s/ONOS_VERSION.*/ONOS_VERSION = \"$NEW_VERSION\"/" tools/build/bazel/variables.bzl
+sed -i".VERBACK" -E "s/ONOS_VERSION.*/ONOS_VERSION = \"$NEW_VERSION\"/" WORKSPACE
+
 find . -name "*.VERBACK" | xargs rm -f
diff --git a/tools/build/onos-prepare-release b/tools/build/onos-prepare-release
index 9869ac3..476e984 100755
--- a/tools/build/onos-prepare-release
+++ b/tools/build/onos-prepare-release
@@ -31,14 +31,17 @@
 git tag -l | grep -q "$ONOS_VERSION\$" &&
   { echo "ERROR: Version already exists"; exit -1; }
 
-# Copy local buck configuration to new tree
-cp $ONOS_ROOT/.buckconfig.local $DIR/
+cp -R $ONOS_ROOT/tools/build/* $DIR/tools/build/
+cp $ONOS_ROOT/tools/test/bin/onos-archetypes-test $DIR/tools/test/bin/
 
 export ONOS_ROOT=$DIR
 # This is a hack to remove symlinks from the ONOS_ROOT path. To be removed when
 # the protobuf buck rules can handle symlinks
 ONOS_ROOT=$(pushd $ONOS_ROOT >/dev/null && pwd -P && popd >/dev/null)
 . $ONOS_ROOT/tools/build/envDefaults
+
+echo "stay away!" >buck-out
+
 exec bash $COMMAND
 
-# TODO on exit, print "leaving directory"
+
diff --git a/tools/build/onos-prepare-sonar b/tools/build/onos-prepare-sonar
index 8caac59..47603bd 100755
--- a/tools/build/onos-prepare-sonar
+++ b/tools/build/onos-prepare-sonar
@@ -12,7 +12,7 @@
 from subprocess import call, check_call, check_output
 
 # FIXME pull the version from the Buck version file
-ONOS_VERSION='1.14.0-SNAPSHOT'
+ONOS_VERSION='1.14.0-b1'
 
 # SonarQube property file name and template
 FILE_NAME = 'sonar-project.properties'
diff --git a/tools/build/onos-release b/tools/build/onos-release
index 83d4506..ae638fa 100755
--- a/tools/build/onos-release
+++ b/tools/build/onos-release
@@ -22,8 +22,6 @@
 
 cd $ONOS_ROOT
 
-# TODO: Create a new branch for this activity?
-
 # Change the version
 onos-change-version $NEW_VERSION
 export ONOS_VERSION=$NEW_VERSION
@@ -32,31 +30,29 @@
 onos-validate-change-version
 
 # Build ONOS & deploy to staging repo using the release profile.
-onos-buck build onos
-
-if [ $dryRun -eq 0 ]; then
-    time onos-buck-publish
-else
-    time onos-buck-publish-local
-fi
+bazel build onos
 
 # Build ONOS docs
-onos-buck build //docs:internal //docs:external
+bazel build //docs:internal //docs:external
 
-# Package test tar.gz
-onos-buck build //:onos-test
+if [ $dryRun -eq 0 ]; then
+    publish_url="oss.sonatype.org"
+else
+    publish_url=""
+fi
 
-# Package admin tar.gz
-onos-buck build //:onos-admin
+# Create artifact catalog
+onos-publish-catalog publishing-catalog
+
+# publish artifacts
+onos-upload-artifacts.py publishing-catalog ${publish_url}
 
 # Build ONOS archetypes & deploy to staging repo using the release profile.
 # Note that release of the staging repository is a separate manual step.
 if [ $dryRun -eq 0 ]; then
-    export MVN_CLI_OPTS=-Pstaging
     pushd tools/package/archetypes/
-    mvn -B -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
+    mvn -B -Pstaging clean install && onos-archetypes-test -Pstaging && mvn -Pstaging -Prelease clean deploy
     popd
-    unset MVN_CLI_OPTS
 else
     pushd tools/package/archetypes/
     mvn -B clean install && onos-archetypes-test
@@ -68,5 +64,3 @@
     git commit -a -m"Tagging $NEW_VERSION"
     git tag -sm"Tagging $NEW_VERSION" $NEW_VERSION #signed tag
 fi
-
-# TODO: push?
diff --git a/tools/build/onos-release-prerequisites b/tools/build/onos-release-prerequisites
index f3d2b6b..c25d829 100755
--- a/tools/build/onos-release-prerequisites
+++ b/tools/build/onos-release-prerequisites
@@ -100,19 +100,6 @@
     echo "OK"
 }
 
-# Test access to EC2
-function testEC2Access {
-    aux=$(mktemp)
-    trap "cat $aux; rm -f $aux; echo 'FAILED'" ERR
-    printf "Checking EC2 access... "
-    : "${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID must be set}"
-    : "${AWS_SECRET_ACCESS_KEY:?AWS_SECRET_ACCESS_KEY must be set}"
-
-    uploadToS3.py -v 1>$aux 2>&1
-    rm -f $aux
-    echo "OK"
-}
-
 # Sonatype account must be created & ~/.m2/settings.xml must be configured
 # Test by "releasing" a fake project setup for that purpose to validate access.
 function testSonatypeAccessMvn {
@@ -155,40 +142,12 @@
     echo "OK"
 }
 
-# .buckconfig.local must exist and the sonatype credentials must be set up
-function testBuckconfigLocal() {
-    printf "Checking local buck config..."
-    if [ ! -f $ONOS_ROOT/.buckconfig.local ]; then
-        echo ".buckconfig.local not found"
-        return 1
-    fi
-
-    trap "echo [publish] must be specified" ERR
-    grep -q "^\[publish\]" $ONOS_ROOT/.buckconfig.local
-
-    trap "echo maven_url must be specified" ERR
-    grep -q "maven_url" $ONOS_ROOT/.buckconfig.local
-
-    trap "echo maven_user must be specified" ERR
-    grep -q "maven_user" $ONOS_ROOT/.buckconfig.local
-
-    trap "echo maven_password must be specified" ERR
-    grep -q "maven_password" $ONOS_ROOT/.buckconfig.local
-
-    trap "echo pgp_keyring must be specified" ERR
-    grep -q "pgp_keyring" $ONOS_ROOT/.buckconfig.local
-
-    echo "OK"
-}
-
-testBuckconfigLocal
 testToolchain
 testSnapshotDependencies
 testGerritAccess
 
 if [ ${dryRun} -eq 0 ]; then
     testWikiAccess
-    testEC2Access
     testSonatypeAccessMvn
     testSonatypeAccessRest
 fi
diff --git a/tools/build/onos-upload-artifacts.py b/tools/build/onos-upload-artifacts.py
index 0cd6c3e..074c14d 100755
--- a/tools/build/onos-upload-artifacts.py
+++ b/tools/build/onos-upload-artifacts.py
@@ -20,6 +20,7 @@
 import hashlib
 import requests, os
 import xml.etree.ElementTree, shutil
+import time
 
 SONATYPE_USER=os.environ.get("SONATYPE_USER")
 SONATYPE_PASSWORD=os.environ.get("SONATYPE_PASSWORD")
@@ -42,6 +43,8 @@
 </promoteRequest>
 '''
 
+CLOSE_RETRY_ATTEMPTS = 12 * 2
+
 def hashlib_compute(hash, input_file, output_file):
     with open(input_file, 'rb') as f:
         for block in iter(lambda: f.read(100000), b''):
@@ -106,6 +109,31 @@
     r = requests.post(url, close_request, headers=headers, auth=(SONATYPE_USER, SONATYPE_PASSWORD))
 
 
+def wait_for_staging_repo(description, repo_id):
+    base_url = "https://" + destination_repo_url + "/service/local/staging/profiles" + "/" + SONATYPE_PROFILE
+    if repo_id is None:
+        return
+    close_request = CLOSE_REPO_REQUEST_TEMPLATE.replace("%(description)", description).replace("%(repo_id)", repo_id)
+    url = base_url + "/finish"
+    headers = {'Content-Type': 'application/xml'}
+    repo_query_url = "https://oss.sonatype.org/service/local/staging/repository/" + repo_id
+
+    attempt = 1
+    print ("waiting for repo to close...")
+    while True:
+        r = requests.get(repo_query_url, close_request, headers=headers, auth=(SONATYPE_USER, SONATYPE_PASSWORD))
+        root = xml.etree.ElementTree.fromstring(r.text)
+        transitioning = root.find("transitioning").text
+        if transitioning != "true":
+            break
+        if attempt == CLOSE_RETRY_ATTEMPTS:
+            print ("Unable to close repo")
+            sys.exit(1)
+        attempt = attempt + 1
+        time.sleep(5)
+    print ("Repo closed successfully")
+
+
 def stage_file(file, repo_id, dest):
     filename_in_repo = os.path.dirname(dest) + "/" + os.path.basename(file)
     if destination_repo_url is not None:
@@ -188,4 +216,5 @@
         dest = s[1]
         upload_file(src, dest)
     close_staging_repo(repo_id=repo_id, description=description)
+    wait_for_staging_repo(repo_id=repo_id, description=description)
     shutil.rmtree(tempdir)
diff --git a/tools/package/archetypes/api/pom.xml b/tools/package/archetypes/api/pom.xml
index 47a6784..7679eb6 100644
--- a/tools/package/archetypes/api/pom.xml
+++ b/tools/package/archetypes/api/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-api-archetype</artifactId>
diff --git a/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml
index 5a24913..6c67ca2 100644
--- a/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/api/src/main/resources/archetype-resources/pom.xml
@@ -32,7 +32,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
     </properties>
 
     <dependencies>
diff --git a/tools/package/archetypes/bundle/pom.xml b/tools/package/archetypes/bundle/pom.xml
index 2c878e8..5ebc96b 100644
--- a/tools/package/archetypes/bundle/pom.xml
+++ b/tools/package/archetypes/bundle/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-bundle-archetype</artifactId>
diff --git a/tools/package/archetypes/bundle/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/bundle/src/main/resources/archetype-resources/pom.xml
index 01e21bf..9d8b493 100644
--- a/tools/package/archetypes/bundle/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/bundle/src/main/resources/archetype-resources/pom.xml
@@ -32,7 +32,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
         <!-- Uncomment to generate ONOS app from this module.
         <onos.app.name>org.foo.app</onos.app.name>
         <onos.app.title>Foo App</onos.app.title>
diff --git a/tools/package/archetypes/cli/pom.xml b/tools/package/archetypes/cli/pom.xml
index 46d23af..4c9738d 100644
--- a/tools/package/archetypes/cli/pom.xml
+++ b/tools/package/archetypes/cli/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-cli-archetype</artifactId>
diff --git a/tools/package/archetypes/cli/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/cli/src/main/resources/archetype-resources/pom.xml
index c56988c..c96e583 100644
--- a/tools/package/archetypes/cli/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/cli/src/main/resources/archetype-resources/pom.xml
@@ -32,7 +32,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
     </properties>
 
     <dependencies>
diff --git a/tools/package/archetypes/pom.xml b/tools/package/archetypes/pom.xml
index 2498463..fb4c5bb 100644
--- a/tools/package/archetypes/pom.xml
+++ b/tools/package/archetypes/pom.xml
@@ -28,7 +28,7 @@
 
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
     <packaging>pom</packaging>
 
     <description>ONOS archetypes project</description>
diff --git a/tools/package/archetypes/rest/pom.xml b/tools/package/archetypes/rest/pom.xml
index 3c34d9f..238437b 100644
--- a/tools/package/archetypes/rest/pom.xml
+++ b/tools/package/archetypes/rest/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-rest-archetype</artifactId>
diff --git a/tools/package/archetypes/rest/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/rest/src/main/resources/archetype-resources/pom.xml
index 5bee98a..a4f47ce 100644
--- a/tools/package/archetypes/rest/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/rest/src/main/resources/archetype-resources/pom.xml
@@ -32,7 +32,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
 
         <web.context>/onos/${artifactId}</web.context>
         <api.version>1.0.0</api.version>
diff --git a/tools/package/archetypes/ui/pom.xml b/tools/package/archetypes/ui/pom.xml
index e0dda9c..b4f31e6 100644
--- a/tools/package/archetypes/ui/pom.xml
+++ b/tools/package/archetypes/ui/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-ui-archetype</artifactId>
diff --git a/tools/package/archetypes/ui/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/ui/src/main/resources/archetype-resources/pom.xml
index caeafa7..69f8486 100644
--- a/tools/package/archetypes/ui/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/ui/src/main/resources/archetype-resources/pom.xml
@@ -32,7 +32,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
         <!-- Uncomment to generate ONOS app from this module.
         <onos.app.name>org.foo.app</onos.app.name>
         <onos.app.title>Foo App</onos.app.title>
diff --git a/tools/package/archetypes/uitab/pom.xml b/tools/package/archetypes/uitab/pom.xml
index 279588b..49e529c 100644
--- a/tools/package/archetypes/uitab/pom.xml
+++ b/tools/package/archetypes/uitab/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-uitab-archetype</artifactId>
diff --git a/tools/package/archetypes/uitab/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/uitab/src/main/resources/archetype-resources/pom.xml
index 419798b..c9c6cbe 100644
--- a/tools/package/archetypes/uitab/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/uitab/src/main/resources/archetype-resources/pom.xml
@@ -33,7 +33,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
         <!-- Uncomment to generate ONOS app from this module.
         <onos.app.name>org.foo.app</onos.app.name>
         <onos.app.title>Foo App</onos.app.title>
diff --git a/tools/package/archetypes/uitopo/pom.xml b/tools/package/archetypes/uitopo/pom.xml
index 740ae0b..854d864 100644
--- a/tools/package/archetypes/uitopo/pom.xml
+++ b/tools/package/archetypes/uitopo/pom.xml
@@ -20,7 +20,7 @@
   <parent>
     <groupId>org.onosproject</groupId>
     <artifactId>onos-archetypes</artifactId>
-    <version>1.14.0-SNAPSHOT</version>
+    <version>1.14.0-b1</version>
   </parent>
 
   <artifactId>onos-uitopo-archetype</artifactId>
diff --git a/tools/package/archetypes/uitopo/src/main/resources/archetype-resources/pom.xml b/tools/package/archetypes/uitopo/src/main/resources/archetype-resources/pom.xml
index 96a8b71..603e1c3 100644
--- a/tools/package/archetypes/uitopo/src/main/resources/archetype-resources/pom.xml
+++ b/tools/package/archetypes/uitopo/src/main/resources/archetype-resources/pom.xml
@@ -33,7 +33,7 @@
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <onos.version>1.14.0-SNAPSHOT</onos.version>
+        <onos.version>1.14.0-b1</onos.version>
         <!-- Uncomment to generate ONOS app from this module.
         <onos.app.name>org.foo.app</onos.app.name>
         <onos.app.title>Foo App</onos.app.title>
diff --git a/tools/package/branding/pom.xml b/tools/package/branding/pom.xml
index a71c4b4..71615d3 100644
--- a/tools/package/branding/pom.xml
+++ b/tools/package/branding/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.onosproject</groupId>
         <artifactId>onos</artifactId>
-        <version>1.14.0-SNAPSHOT</version>
+        <version>1.14.0-b1</version>
         <relativePath>../../../pom.xml</relativePath>
     </parent>
 
diff --git a/tools/package/features/pom.xml b/tools/package/features/pom.xml
index 18dd3c4..e2c86db 100644
--- a/tools/package/features/pom.xml
+++ b/tools/package/features/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.onosproject</groupId>
         <artifactId>onos</artifactId>
-        <version>1.14.0-SNAPSHOT</version>
+        <version>1.14.0-b1</version>
         <relativePath>../../../pom.xml</relativePath>
     </parent>
 
diff --git a/tools/test/bin/onos-archetypes-test b/tools/test/bin/onos-archetypes-test
index 6bc3e15..8b2c571 100755
--- a/tools/test/bin/onos-archetypes-test
+++ b/tools/test/bin/onos-archetypes-test
@@ -19,16 +19,16 @@
 set -e
 
 export AROOT=${ONOS_STAGE_ROOT:-/tmp}/foo
-export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.14.0-SNAPSHOT"
+export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.14.0-b1"
 
 mkdir -p $AROOT
 for an in api bundle cli rest ui uitab uitopo; do
     cd $AROOT
     rm -fr $AROOT/foo-$an
-    mvn archetype:generate $MVN_CLI_OPTS $ARCHETYPE_OPTS \
+    mvn archetype:generate "$@" $ARCHETYPE_OPTS \
         -DarchetypeArtifactId=onos-$an-archetype \
         -DgroupId=org.foo -DartifactId=foo-$an -Dversion=1.0 \
         -Dpackage=org.foo.$an -DinteractiveMode=false
     cd $AROOT/foo-$an
-    mvn $MVN_CLI_OPTS clean install
+    mvn "$@" clean install
 done