Fixing a defect in onos-install, which polluted the ~/.m2/repository.
Change-Id: I4fe928831404411292f6879f059aae49b7bcfcf9
diff --git a/tools/test/bin/onos-install b/tools/test/bin/onos-install
index 604acab..0f4cc9d 100755
--- a/tools/test/bin/onos-install
+++ b/tools/test/bin/onos-install
@@ -49,10 +49,8 @@
# Setup correct user to run onos-service
echo 'export ONOS_USER="${ONOS_USER:-sdn}"' >> $ONOS_INSTALL_DIR/options
- # Remove any previous ON.Lab bits from ~/.m2 repo and re-stage it.
+ # Remove any previous ON.Lab bits from ~/.m2 repo.
rm -fr ~/.m2/repository/org/onosproject
- mkdir -p ~/.m2/repository/org
- cp -r $ONOS_INSTALL_DIR/$KARAF_DIST/system/org/onosproject ~/.m2/repository/org
[ ! -z "$mvn_settings" ] && cp /tmp/settings.xml ~/.m2/settings.xml