Updating onos-release to use staging profile for archetypes

Change-Id: I8e81b7399c747174776b0523df555b57d0d61776
diff --git a/tools/build/onos-release b/tools/build/onos-release
index 774b0de..901425c 100755
--- a/tools/build/onos-release
+++ b/tools/build/onos-release
@@ -37,9 +37,11 @@
 
 # Build ONOS archetypes & deploy to staging repo using the release profile.
 # Note that release of the staging repository is a separate manual step.
+export MVN_CLI_OPTS=-Pstaging
 pushd tools/package/archetypes/
-mvn clean install && onos-archetypes-test && mvn -Prelease clean deploy
+mvn -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
 popd
+unset MVN_CLI_OPTS
 
 # Commit newly versioned artifacts and issue a tag.
 git commit -a -m"Tagging $NEW_VERSION"