diff --git a/dev/kyuubi-codecov/pom.xml b/dev/kyuubi-codecov/pom.xml
index cd47c2354..18ca2390a 100644
--- a/dev/kyuubi-codecov/pom.xml
+++ b/dev/kyuubi-codecov/pom.xml
@@ -103,6 +103,14 @@
true
+
+
+ org.scalastyle
+ scalastyle-maven-plugin
+
+ true
+
+
diff --git a/dev/kyuubi-extension-spark-3-1/pom.xml b/dev/kyuubi-extension-spark-3-1/pom.xml
index 86f6c7be4..652a62c3d 100644
--- a/dev/kyuubi-extension-spark-3-1/pom.xml
+++ b/dev/kyuubi-extension-spark-3-1/pom.xml
@@ -98,12 +98,6 @@
test
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
-
org.apache.hadoop
hadoop-client-runtime
@@ -137,23 +131,6 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
-
-
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
-
- org.scalatest
- scalatest-maven-plugin
-
-
diff --git a/dev/kyuubi-tpcds/pom.xml b/dev/kyuubi-tpcds/pom.xml
index f9cea29a5..f3240c1ba 100644
--- a/dev/kyuubi-tpcds/pom.xml
+++ b/dev/kyuubi-tpcds/pom.xml
@@ -50,16 +50,6 @@
target/scala-${scala.binary.version}/test-classes
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
org.scalatest
scalatest-maven-plugin
diff --git a/externals/kyuubi-spark-sql-engine/pom.xml b/externals/kyuubi-spark-sql-engine/pom.xml
index a82b09c9c..ecf15d24c 100644
--- a/externals/kyuubi-spark-sql-engine/pom.xml
+++ b/externals/kyuubi-spark-sql-engine/pom.xml
@@ -64,18 +64,6 @@
test
-
- org.slf4j
- jul-to-slf4j
- test
-
-
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
-
kyuubi-hive-jdbc
Kyuubi Project Hive JDBC Client
jar
@@ -245,5 +242,34 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
+
+
+
+ net.alchim31.maven
+ scala-maven-plugin
+
+
+ attach-scaladocs
+ none
+
+
+
+
+
+ org.scalatest
+ scalatest-maven-plugin
+
+ true
+
+
+
+
+ org.scalastyle
+ scalastyle-maven-plugin
+
+ true
+
+
+
diff --git a/kyuubi-metrics/pom.xml b/kyuubi-metrics/pom.xml
index 23fa050fb..b773bde51 100644
--- a/kyuubi-metrics/pom.xml
+++ b/kyuubi-metrics/pom.xml
@@ -101,12 +101,6 @@
test
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
-
org.eclipse.jetty
jetty-client
@@ -117,22 +111,5 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
-
-
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
-
- org.scalatest
- scalatest-maven-plugin
-
-
diff --git a/kyuubi-server/pom.xml b/kyuubi-server/pom.xml
index 4ef323c83..fd4634943 100644
--- a/kyuubi-server/pom.xml
+++ b/kyuubi-server/pom.xml
@@ -184,18 +184,6 @@
test
-
- org.slf4j
- jul-to-slf4j
- test
-
-
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
-
org.apache.hive
hive-metastore
@@ -221,6 +209,12 @@
test
+
+ org.slf4j
+ jul-to-slf4j
+ test
+
+
com.unboundid
unboundid-ldapsdk
@@ -285,22 +279,5 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
-
-
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
-
- org.scalatest
- scalatest-maven-plugin
-
-
diff --git a/kyuubi-zookeeper/pom.xml b/kyuubi-zookeeper/pom.xml
index 991ffcf5f..0c6fe91ba 100644
--- a/kyuubi-zookeeper/pom.xml
+++ b/kyuubi-zookeeper/pom.xml
@@ -56,12 +56,6 @@
test
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
-
org.apache.curator
curator-framework
@@ -78,22 +72,5 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
-
-
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
-
- org.scalatest
- scalatest-maven-plugin
-
-
diff --git a/pom.xml b/pom.xml
index bd7f8eb9e..dcb7ad879 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1226,6 +1226,14 @@
+
+
+ org.scalatest
+ scalatest_${scala.binary.version}
+ test
+
+
+
@@ -1663,11 +1671,28 @@
build-helper-maven-plugin
+
+ net.alchim31.maven
+ scala-maven-plugin
+
+
+
+ org.scalastyle
+ scalastyle-maven-plugin
+
+
+
org.apache.maven.plugins
maven-surefire-plugin
+
+
+ org.scalatest
+ scalatest-maven-plugin
+
+
org.jacoco
jacoco-maven-plugin
diff --git a/tools/spark-block-cleaner/pom.xml b/tools/spark-block-cleaner/pom.xml
index 4a47d137b..e186693f4 100644
--- a/tools/spark-block-cleaner/pom.xml
+++ b/tools/spark-block-cleaner/pom.xml
@@ -50,12 +50,6 @@
jul-to-slf4j
test
-
-
- org.scalatest
- scalatest_${scala.binary.version}
- test
-
@@ -66,22 +60,5 @@
${project.basedir}/src/main/resources
-
-
-
- net.alchim31.maven
- scala-maven-plugin
-
-
-
- org.scalastyle
- scalastyle-maven-plugin
-
-
-
- org.scalatest
- scalatest-maven-plugin
-
-