Thomas Vachuska
Committed by Gerrit Code Review

Fixing onos-create-app to bomb if mvn command fails for some reason.

Change-Id: I770a2efee9557371caff7066bf71306d375c3fdf
...@@ -23,6 +23,8 @@ otherOptions="" ...@@ -23,6 +23,8 @@ otherOptions=""
23 [ -n "$1" ] && otherOptions="$otherOptions -Dversion=$1" && shift 23 [ -n "$1" ] && otherOptions="$otherOptions -Dversion=$1" && shift
24 [ -n "$1" ] && otherOptions="$otherOptions -Dpackage=$1" && shift 24 [ -n "$1" ] && otherOptions="$otherOptions -Dpackage=$1" && shift
25 25
26 +set -e
27 +
26 mvn archetype:generate -DarchetypeCatalog=local,remote \ 28 mvn archetype:generate -DarchetypeCatalog=local,remote \
27 -DarchetypeGroupId=org.onosproject \ 29 -DarchetypeGroupId=org.onosproject \
28 -DarchetypeArtifactId=onos-$archetype-archetype \ 30 -DarchetypeArtifactId=onos-$archetype-archetype \
......