Only push maven artifacts that are useful to external apps
Change-Id: I87e077334c69402f0e178aceb14116597760f351
diff --git a/tools/build/onos-release b/tools/build/onos-release
index d903b0b..42ad942 100755
--- a/tools/build/onos-release
+++ b/tools/build/onos-release
@@ -48,11 +48,17 @@
# 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 -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
-popd
-unset MVN_CLI_OPTS
+if [ $dryRun -eq 0 ]; then
+ export MVN_CLI_OPTS=-Pstaging
+ pushd tools/package/archetypes/
+ mvn -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
+ popd
+ unset MVN_CLI_OPTS
+else
+ pushd tools/package/archetypes/
+ mvn clean install && onos-archetypes-test
+ popd
+fi
# Commit newly versioned artifacts and issue a tag.
git commit -a -m"Tagging $NEW_VERSION"