From 32539d9347d8de3320f40d8c5f2d885c70ee2371 Mon Sep 17 00:00:00 2001 From: Indrek Priks Date: Wed, 20 Mar 2019 01:36:28 +0200 Subject: [PATCH] Fix offline test execution problem regarding maven not finding `org.apache.maven.surefire:surefire-junit4:jar:2.20.1` and `dummy:dummy:jar:1.0` dependencies while offline Apparently the `surefire-junit4` dependency needs to be listed explicitly as the plugin's dependency, so that `mvn dependency:go-offline` could see it needs to be downloaded too. There was a nice discussion over here: https://github.com/googleapis/google-cloud-java/issues/3819 https://github.com/googleapis/google-cloud-java/pull/3820 --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index c049fbb8c..45a32a857 100755 --- a/pom.xml +++ b/pom.xml @@ -181,6 +181,13 @@ **/PackageTest.java + + + org.apache.maven.surefire + surefire-junit4 + 2.20.1 + +