aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/tools/test/bin/onos-archetypes-test
blob: 7ae00332692753978439f4ee4540269a7ce44c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# -----------------------------------------------------------------------------
# Builds a set of projects using ONOS archetypes.
# -----------------------------------------------------------------------------

set -e

export AROOT=/tmp/foo
export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.4.0-SNAPSHOT"

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