Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Builds a set of projects using ONOS archetypes. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | export AROOT=/tmp/foo |
Thomas Vachuska | dded0cb | 2015-06-25 16:23:49 -0700 | [diff] [blame^] | 7 | export ARCHETYPE_OPTS="-DarchetypeGroupId=org.onosproject -DarchetypeVersion=1.3.0-SNAPSHOT" |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 8 | |
Thomas Vachuska | d9813e6 | 2015-01-21 08:43:04 -0800 | [diff] [blame] | 9 | mkdir -p $AROOT |
Thomas Vachuska | a2ae422 | 2015-04-29 18:42:09 -0700 | [diff] [blame] | 10 | for an in api bundle cli ui; do |
Thomas Vachuska | fc7f22d | 2014-12-04 11:07:01 -0800 | [diff] [blame] | 11 | 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 |
| 19 | done |