Thomas Vachuska
Committed by Gerrit Code Review

Fixing onos-package to include automatic karaf-assembly stage;

otherwise artifacts built using plain 'mvn' or 'obs' won't be included.

Change-Id: I71b7a27cff3a8faea2e2589a921e1f639cedd5b7
......@@ -54,7 +54,6 @@
<module>tools/package/archetypes</module>
<module>tools/package/branding</module>
<module>tools/package/karaf-assembly</module>
<module>tools/package/maven-plugin</module>
<module>tools/build/conf</module>
</modules>
......
......@@ -158,6 +158,11 @@ function build_rpm() {
# Bail on any errors
set -e
# Run karaf assembly to collect artifacts for off-line installations.
aux=/tmp/assembly-$$.log
trap "rm -f $aux 2>/dev/null" EXIT
cd $ONOS_ROOT/tools/package/karaf-assembly && mvn clean install > $aux 2>&1
# Before starting make sure the environment is clan - delete onos staging folder
rm -fr $ONOS_STAGE
......