diff --git a/external/mqtt/pom.xml b/external/mqtt/pom.xml
index 0e41e5781784b..69b309876a0db 100644
--- a/external/mqtt/pom.xml
+++ b/external/mqtt/pom.xml
@@ -78,5 +78,33 @@
target/scala-${scala.binary.version}/classes
target/scala-${scala.binary.version}/test-classes
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ test-jar-with-dependencies
+ package
+
+ single
+
+
+
+ spark-streaming-mqtt-test-${project.version}
+ ${project.build.directory}/scala-${scala.binary.version}/
+ false
+
+ false
+
+ src/main/assembly/assembly.xml
+
+
+
+
+
+
diff --git a/external/mqtt/src/main/assembly/assembly.xml b/external/mqtt/src/main/assembly/assembly.xml
new file mode 100644
index 0000000000000..92318ec16dba8
--- /dev/null
+++ b/external/mqtt/src/main/assembly/assembly.xml
@@ -0,0 +1,38 @@
+
+
+ test-jar-with-dependencies
+
+ jar
+
+ false
+
+
+
+ true
+ test
+ false
+
+ org.apache.hadoop:*:jar
+ org.apache.spark:*:jar
+ org.apache.zookeeper:*:jar
+ org.apache.avro:*:jar
+
+
+
+
+