diff --git a/hcatalog/core/pom.xml b/hcatalog/core/pom.xml
index b7ae48cc87a9..90d145972ea3 100644
--- a/hcatalog/core/pom.xml
+++ b/hcatalog/core/pom.xml
@@ -76,6 +76,11 @@
test
+
+ org.apache.derby
+ derby
+ test
+
com.google.guava
guava
diff --git a/metastore/pom.xml b/metastore/pom.xml
index e50c956af0d3..1032832c0e6e 100644
--- a/metastore/pom.xml
+++ b/metastore/pom.xml
@@ -65,6 +65,7 @@
org.apache.derby
derby
+ test
org.apache.hadoop
diff --git a/standalone-metastore/metastore-common/pom.xml b/standalone-metastore/metastore-common/pom.xml
index 8ff828018ffd..8b42c98811b6 100644
--- a/standalone-metastore/metastore-common/pom.xml
+++ b/standalone-metastore/metastore-common/pom.xml
@@ -115,6 +115,7 @@
org.apache.derby
derby
+ test
org.apache.hadoop
diff --git a/standalone-metastore/metastore-server/pom.xml b/standalone-metastore/metastore-server/pom.xml
index 8367ad533d5b..e312ad838083 100644
--- a/standalone-metastore/metastore-server/pom.xml
+++ b/standalone-metastore/metastore-server/pom.xml
@@ -325,6 +325,7 @@
org.apache.derby
derby
+ test
org.mariadb.jdbc