diff --git a/examples/als/pom.xml b/examples/als/pom.xml
index 1fac8782f..39d207a95 100644
--- a/examples/als/pom.xml
+++ b/examples/als/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/correlation/pom.xml b/examples/correlation/pom.xml
index 9d83e32b5..a8af7cddc 100644
--- a/examples/correlation/pom.xml
+++ b/examples/correlation/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/kmeans/pom.xml b/examples/kmeans/pom.xml
index 94666cb65..e4437c51a 100644
--- a/examples/kmeans/pom.xml
+++ b/examples/kmeans/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/linear-regression/pom.xml b/examples/linear-regression/pom.xml
index 613373507..641562d85 100644
--- a/examples/linear-regression/pom.xml
+++ b/examples/linear-regression/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/naive-bayes/pom.xml b/examples/naive-bayes/pom.xml
index 305e6dcad..bb920cdeb 100644
--- a/examples/naive-bayes/pom.xml
+++ b/examples/naive-bayes/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/pca/pom.xml b/examples/pca/pom.xml
index 0e549170c..263a984a9 100644
--- a/examples/pca/pom.xml
+++ b/examples/pca/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/examples/summarizer/pom.xml b/examples/summarizer/pom.xml
index 885f2da0f..bc6d70ae3 100644
--- a/examples/summarizer/pom.xml
+++ b/examples/summarizer/pom.xml
@@ -37,6 +37,17 @@
spark-sql_2.12
${spark.version}
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
diff --git a/mllib-dal/pom.xml b/mllib-dal/pom.xml
index eb07716f4..4fde0c02a 100644
--- a/mllib-dal/pom.xml
+++ b/mllib-dal/pom.xml
@@ -69,6 +69,17 @@
spark-core_2.12
${spark.version}
provided
+
+
+
+ org.slf4j
+ slf4j-log4j12
+
+
+ log4j
+ log4j
+
+
org.apache.spark