Updating stc runner to use curl instead of mvn to fetch stc binary

Change-Id: Ib3ac953dfb0776de6917882d7bfe62c8b4056fd6
diff --git a/tools/test/bin/stc b/tools/test/bin/stc
index d7ddc7c..62da3d2 100755
--- a/tools/test/bin/stc
+++ b/tools/test/bin/stc
@@ -6,16 +6,15 @@
 . $ONOS_ROOT/tools/build/envDefaults
 
 VER=${STC_VERSION:-2.2}
-JAR=~/.m2/repository/org/onosproject/onos-stc/$VER/onos-stc-$VER.jar
+MVN_JAR=org/onosproject/onos-stc/$VER/onos-stc-$VER.jar
+JAR=${MAVEN_REPO:-$HOME/.m2/repository}/$MVN_JAR
 SCENARIOS=$ONOS_ROOT/tools/test/scenarios
 
 # Download the STC binary if needed
 if [ ! -f $JAR ]; then
     printf "Downloading STC binary..."
-    mkdir -p /tmp/stc
-    aux=/tmp/stc/stc-$$.log
-    mvn dependency:get -Dartifact=org.onosproject:onos-stc:$VER -Dtransitive=false -B >$aux || fgrep '[ERROR]' $aux
-    rm -f $aux
+    mkdir -p /tmp/stc $(dirname $JAR)
+    curl http://repo1.maven.org/maven2/$MVN_JAR > $JAR
     [ -f $JAR ] && printf "Done.\n"
 fi