| # Script to replace OF southbound with maven built artifact, |
| # which can use native-transport inside karaf |
| # Workadound until buck built artifact can build equivalent. |
| . tools/build/envDefaults |
| echo "Preparing onos tarball" |
| echo "Building onos-protocols-openflow-ctl with native-transport" |
| mvn install -DskipTests -Dcheckstyle.skip -am --projects :onos-protocols-openflow-ctl -T 1C |
| . tools/build/envDefaults |
| echo "Repackaging onos tarball" |
| cd $ONOS_STAGE_ROOT || exit 1 |
| cp -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 |
| tar czf $ONOS_TAR onos-$ONOS_POM_VERSION/ |