blob: 7ae00332692753978439f4ee4540269a7ce44c25 [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
Brian O'Connor726dc5b2015-09-05 00:13:07 -07006set -e
7
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -08008export AROOT=/tmp/foo
Brian O'Connorf967ad62015-09-18 15:19:54 -07009export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.4.0-SNAPSHOT"
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080010
Thomas Vachuskad9813e62015-01-21 08:43:04 -080011mkdir -p $AROOT
Thomas Vachuskaa2ae4222015-04-29 18:42:09 -070012for an in api bundle cli ui; do
Thomas Vachuskafc7f22d2014-12-04 11:07:01 -080013 cd $AROOT
14 rm -fr $AROOT/foo-$an
15 mvn archetype:generate $ARCHETYPE_OPTS \
16 -DarchetypeArtifactId=onos-$an-archetype \
17 -DgroupId=org.foo -DartifactId=foo-$an -Dversion=1.0 \
18 -Dpackage=org.foo.$an -DinteractiveMode=false
19 cd $AROOT/foo-$an
20 mvn clean install
21done