diff --git a/hudi-spark-datasource/hudi-spark2/pom.xml b/hudi-spark-datasource/hudi-spark2/pom.xml
index cd44e79ceecde..0d5d7f20d5459 100644
--- a/hudi-spark-datasource/hudi-spark2/pom.xml
+++ b/hudi-spark-datasource/hudi-spark2/pom.xml
@@ -124,6 +124,13 @@
false
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ ${skip.hudi-spark2.unit.tests}
+
+
org.apache.rat
apache-rat-plugin
@@ -144,7 +151,7 @@
org.scala-lang
scala-library
- ${scala.version}
+ ${scala11.version}
diff --git a/pom.xml b/pom.xml
index e90f9a2495183..384596da27eb9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -105,14 +105,15 @@
4.1.1
0.8.0
4.4.1
- 2.4.4
+ ${spark2.version}
1.12.0
2.4.4
3.0.0
1.8.2
- 2.11.12
- 2.11
+ 2.11.12
2.12.10
+ ${scala11.version}
+ 2.11
0.12
3.3.1
3.0.1
@@ -140,6 +141,7 @@
compile
org.apache.hudi.
true
+ false
@@ -1361,6 +1363,7 @@
${fasterxml.spark3.version}
${fasterxml.spark3.version}
${fasterxml.spark3.version}
+ true