diff --git a/scala/assembly/pom.xml b/scala/assembly/pom.xml
index 804cfd74015..fedafa30bc1 100644
--- a/scala/assembly/pom.xml
+++ b/scala/assembly/pom.xml
@@ -102,8 +102,8 @@
${maven-assembly-plugin.version}
- src/main/assembly/assembly.xml
-
+ src/main/assembly/assembly.xml
+ src/main/assembly/fat-assembly.xml
diff --git a/scala/assembly/src/main/assembly/assembly.xml b/scala/assembly/src/main/assembly/assembly.xml
index 6d25a4f692b..6c10473bad7 100644
--- a/scala/assembly/src/main/assembly/assembly.xml
+++ b/scala/assembly/src/main/assembly/assembly.xml
@@ -120,34 +120,6 @@
/**
-
- /assembly
- ${project.parent.basedir}/dllib/target
-
- bigdl-dllib*-jar-with-dependencies.jar
-
-
-
- /assembly
- ${project.parent.basedir}/orca/target
-
- bigdl-orca*-jar-with-dependencies.jar
-
-
-
- /assembly
- ${project.parent.basedir}/friesian/target
-
- bigdl-friesian*-jar-with-dependencies.jar
-
-
-
- /assembly
- ${project.parent.basedir}/ppml/target
-
- bigdl-ppml*-jar-with-dependencies.jar
-
-
/python
${project.parent.basedir}/../python/ppml/scripts
diff --git a/scala/assembly/src/main/assembly/fat-assembly.xml b/scala/assembly/src/main/assembly/fat-assembly.xml
new file mode 100644
index 00000000000..9cc69da14b3
--- /dev/null
+++ b/scala/assembly/src/main/assembly/fat-assembly.xml
@@ -0,0 +1,118 @@
+
+ fat-jars
+
+ dir
+ zip
+
+ false
+
+
+ /conf
+ ${project.parent.basedir}/dllib/src/main/resources
+
+ spark-bigdl.conf
+
+
+
+ /bin
+ ${project.parent.basedir}/../scripts
+
+ *with-dllib.sh
+
+
+
+ /apps
+ ${project.parent.basedir}/../apps
+
+ **/*
+
+
+
+ /python
+ ${project.parent.basedir}/dllib/target
+
+ bigdl-dllib*-python-api.zip
+
+
+
+ /python
+ ${project.parent.basedir}/orca/target
+
+ bigdl-orca*-python-api.zip
+
+
+
+ /python
+ ${project.parent.basedir}/friesian/target
+
+ bigdl-friesian*-python-api.zip
+
+
+
+ /python
+ ${project.parent.basedir}/target
+
+ bigdl*-python-api.zip
+
+
+
+ /examples/dllib
+ ${project.parent.basedir}/../python/dllib/examples
+
+ /**
+
+
+
+ /examples/orca
+ ${project.parent.basedir}/../python/orca/example
+
+ /**
+
+
+
+ /examples/chronos
+ ${project.parent.basedir}/../python/chronos/example
+
+ /**
+
+
+
+ /examples/friesian
+ ${project.parent.basedir}/../python/friesian/example
+
+ /**
+
+
+
+ /
+ ${project.parent.basedir}/tpp
+
+ /**
+
+
+
+ /jars
+ ${project.parent.basedir}/dllib/target
+
+ bigdl-dllib*-jar-with-dependencies.jar
+
+
+
+ /jars
+ ${project.parent.basedir}/orca/target
+
+ bigdl-orca*-jar-with-dependencies.jar
+
+
+
+ /jars
+ ${project.parent.basedir}/friesian/target
+
+ bigdl-friesian*-jar-with-dependencies.jar
+
+
+
+
+