onos-archetypes-test
692 Bytes
#!/bin/bash
# -----------------------------------------------------------------------------
# Builds a set of projects using ONOS archetypes.
# -----------------------------------------------------------------------------
set -e
export AROOT=/tmp/foo
export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.3.0-rc2"
mkdir -p $AROOT
for an in api bundle cli ui; 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