Adding set -e to fail onos-create-app on mvn generate failures
Also, adding fixme that can be a common pitfall in Buck build land Change-Id: I96828aa520d6b81c71d1d7b2ce1841d93c92a843
Showing
1 changed file
with
3 additions
and
0 deletions
| ... | @@ -23,6 +23,9 @@ otherOptions="" | ... | @@ -23,6 +23,9 @@ 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 -ex | ||
| 27 | + | ||
| 28 | +#FIXME This will fail for SNAPSHOT versions when Maven has not been used for a local build. | ||
| 26 | mvn archetype:generate -DarchetypeGroupId=org.onosproject \ | 29 | mvn archetype:generate -DarchetypeGroupId=org.onosproject \ |
| 27 | -DarchetypeArtifactId=onos-$archetype-archetype \ | 30 | -DarchetypeArtifactId=onos-$archetype-archetype \ |
| 28 | -DarchetypeVersion=$ONOS_POM_VERSION $otherOptions "$@" | 31 | -DarchetypeVersion=$ONOS_POM_VERSION $otherOptions "$@" | ... | ... |
-
Please register or login to post a comment