diff --git a/common/utils/src/main/scala/org/apache/spark/util/IvyTestUtils.scala b/common/utils/src/test/scala/org/apache/spark/util/IvyTestUtils.scala
similarity index 100%
rename from common/utils/src/main/scala/org/apache/spark/util/IvyTestUtils.scala
rename to common/utils/src/test/scala/org/apache/spark/util/IvyTestUtils.scala
diff --git a/connector/connect/client/jvm/pom.xml b/connector/connect/client/jvm/pom.xml
index eb98e4203a963..8057a33df1789 100644
--- a/connector/connect/client/jvm/pom.xml
+++ b/connector/connect/client/jvm/pom.xml
@@ -82,6 +82,13 @@
scalacheck_${scala.binary.version}
test
+
+ org.apache.spark
+ spark-common-utils_${scala.binary.version}
+ ${project.version}
+ tests
+ test
+
com.typesafe
diff --git a/core/pom.xml b/core/pom.xml
index f2d1f4eb144a9..c093213bd6b94 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -451,6 +451,13 @@
tests
test
+
+ org.apache.spark
+ spark-common-utils_${scala.binary.version}
+ ${project.version}
+ tests
+ test
+