Adding archetype for onos-bundle and onos-cli projects.

Change-Id: I5df9db6a571be682ff2200c182bad8100dd95bfe
diff --git a/tools/test/bin/onos-archetypes-test b/tools/test/bin/onos-archetypes-test
new file mode 100755
index 0000000..a7ae186
--- /dev/null
+++ b/tools/test/bin/onos-archetypes-test
@@ -0,0 +1,18 @@
+#!/bin/bash
+# -----------------------------------------------------------------------------
+# Builds a set of projects using ONOS archetypes.
+# -----------------------------------------------------------------------------
+
+export AROOT=/tmp/foo
+export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -Dversion=1.0.0-SNAPSHOT"
+
+for an in api bundle cli; do
+    cd $AROOT
+    rm -fr $AROOT/foo-$an
+    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 clean install
+done