blob: c9af0804b9308c9d5535d5c2167eb4bca76d8506 [file] [log] [blame]
Yuta HIGUCHI6ee6b8c2017-05-09 14:44:30 -07001#!/bin/bash -e
2
3# Script to replace OF southbound with maven built artifact,
4# which can use native-transport inside karaf
5
6# Workadound until buck built artifact can build equivalent.
7
8cd $ONOS_ROOT || exit 1
9. tools/build/envDefaults
10
11echo "Preparing onos tarball"
12onos-package
13
14echo "Building onos-protocols-openflow-ctl with native-transport"
15mvn install -DskipTests -Dcheckstyle.skip -am --projects :onos-protocols-openflow-ctl -T 1C
16
17. tools/build/envDefaults
18
19echo "Repackaging onos tarball"
20cd $ONOS_STAGE_ROOT || exit 1
21tar xf $ONOS_TAR
22
23cp -p $ONOS_ROOT/protocols/openflow/ctl/target/onos-protocols-openflow-ctl-$ONOS_POM_VERSION.jar /tmp/onos-$ONOS_POM_VERSION/apache-karaf-$KARAF_VERSION/system/org/onosproject/onos-protocols-openflow-ctl/$ONOS_POM_VERSION/onos-protocols-openflow-ctl-$ONOS_POM_VERSION.jar
24
25rm $ONOS_TAR
26
27tar czf $ONOS_TAR onos-$ONOS_POM_VERSION/
28
29echo "Repackaged:"
30ls -l $ONOS_TAR
31