blob: 2f4b7df1bf2630aaabf04146e7a8b569a24b9d70 [file] [log] [blame]
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Builds a set of projects using ONOS archetypes.
4# -----------------------------------------------------------------------------
5
6export AROOT=/tmp/foo
Thomas Vachuskadded0cb2015-06-25 16:23:49 -07007export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.3.0-SNAPSHOT"
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -08008
Thomas Vachuskad9813e62015-01-21 08:43:04 -08009mkdir -p $AROOT
Thomas Vachuskaa2ae4222015-04-29 18:42:09 -070010for an in api bundle cli ui; do
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080011 cd $AROOT
12 rm -fr $AROOT/foo-$an
13 mvn archetype:generate $ARCHETYPE_OPTS \
14 -DarchetypeArtifactId=onos-$an-archetype \
15 -DgroupId=org.foo -DartifactId=foo-$an -Dversion=1.0 \
16 -Dpackage=org.foo.$an -DinteractiveMode=false
17 cd $AROOT/foo-$an
18 mvn clean install
19done