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 +