From 32946a124b75fae1ddac962bdfd4e678ca9c92bc Mon Sep 17 00:00:00 2001 From: Qing Date: Wed, 16 Jan 2019 11:52:40 -0800 Subject: [PATCH] update the pom file config --- scala-package/core/pom.xml | 6 ------ .../src/test/java/org/apache/mxnet/javaapi/ImageTest.java | 8 ++------ scala-package/examples/pom.xml | 6 ------ scala-package/infer/pom.xml | 8 -------- scala-package/pom.xml | 6 ++++++ 5 files changed, 8 insertions(+), 26 deletions(-) diff --git a/scala-package/core/pom.xml b/scala-package/core/pom.xml index 7264c39e84a0..4de65c0b361a 100644 --- a/scala-package/core/pom.xml +++ b/scala-package/core/pom.xml @@ -138,12 +138,6 @@ INTERNAL provided - - junit - junit - 4.11 - test - commons-io commons-io diff --git a/scala-package/core/src/test/java/org/apache/mxnet/javaapi/ImageTest.java b/scala-package/core/src/test/java/org/apache/mxnet/javaapi/ImageTest.java index cc284c7c6910..0092744a21a8 100644 --- a/scala-package/core/src/test/java/org/apache/mxnet/javaapi/ImageTest.java +++ b/scala-package/core/src/test/java/org/apache/mxnet/javaapi/ImageTest.java @@ -51,12 +51,8 @@ private static void downloadUrl(String url, String filePath, int maxRetry) throw public static void downloadFile() throws Exception { String tempDirPath = System.getProperty("java.io.tmpdir"); imLocation = tempDirPath + "/inputImages/Pug-Cookie.jpg"; - try { - downloadUrl("https://s3.amazonaws.com/model-server/inputs/Pug-Cookie.jpg", - imLocation, 3); - } catch (Exception e) { - throw e; - } + downloadUrl("https://s3.amazonaws.com/model-server/inputs/Pug-Cookie.jpg", + imLocation, 3); } @Test diff --git a/scala-package/examples/pom.xml b/scala-package/examples/pom.xml index a41f6cb0aa10..30ccfdcce12e 100644 --- a/scala-package/examples/pom.xml +++ b/scala-package/examples/pom.xml @@ -129,11 +129,5 @@ slf4j-simple 1.7.5 - - junit - junit - 4.11 - test - diff --git a/scala-package/infer/pom.xml b/scala-package/infer/pom.xml index 13ceebb83cd9..565ac6e393a5 100644 --- a/scala-package/infer/pom.xml +++ b/scala-package/infer/pom.xml @@ -64,13 +64,5 @@ 1.10.19 test - - - junit - junit - 4.11 - test - - diff --git a/scala-package/pom.xml b/scala-package/pom.xml index 07baeab9b63f..5ba6f1f9f498 100644 --- a/scala-package/pom.xml +++ b/scala-package/pom.xml @@ -412,6 +412,12 @@ 1.13.5 test + + junit + junit + 4.11 + test +