diff --git a/gluten-ut/pom.xml b/gluten-ut/pom.xml
index f0dc9ebbc8bd..65c920baf54e 100644
--- a/gluten-ut/pom.xml
+++ b/gluten-ut/pom.xml
@@ -24,6 +24,11 @@
../pom.xml
+
+ common
+ ${spark.test.module}
+
+
gluten-ut
pom
Gluten Unit Test
diff --git a/pom.xml b/pom.xml
index a38017476e54..fedb8da3a448 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,8 +34,6 @@
gluten-ui
package
shims
- shims/common
- shims/${spark.shim.module}
substrait/substrait-spark
@@ -220,8 +218,6 @@
spark-ut
gluten-ut
- gluten-ut/common
- gluten-ut/${spark.test.module}
diff --git a/shims/pom.xml b/shims/pom.xml
index 520d6c218a20..ba860c83a627 100644
--- a/shims/pom.xml
+++ b/shims/pom.xml
@@ -28,6 +28,11 @@
Gluten Shims
pom
+
+ common
+ ${spark.shim.module}
+
+
org.scalatest