diff --git a/.gitignore b/.gitignore
index ce574854cc..c4b0866b11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,10 +11,10 @@ ratReport.txt
.factorypath
# for native build
-**/CMakeCache.txt
-**/CMakeFiles/
-**/Makefile
-**/cmake_install.cmake
+CMakeCache.txt
+CMakeFiles/
+Makefile
+cmake_install.cmake
# this file is generated
artemis-native/src/main/c/org_apache_activemq_artemis_jlibaio_LibaioContext.h
diff --git a/artemis-distribution/src/main/assembly/source-assembly.xml b/artemis-distribution/src/main/assembly/source-assembly.xml
index acf6b110bb..7f0f00ea88 100644
--- a/artemis-distribution/src/main/assembly/source-assembly.xml
+++ b/artemis-distribution/src/main/assembly/source-assembly.xml
@@ -56,6 +56,21 @@
artemis_doap.rdf
artemis-native/bin/
+
+ CMakeCache.txt
+ CMakeFiles/
+ Makefile
+ artemis-native/CMakeCache.txt
+ artemis-native/CMakeFiles/
+ artemis-native/Makefile
+ artemis-native/cmake_install.cmake
+ artemis-native/src/main/c/CMakeFiles/
+ artemis-native/src/main/c/Makefile
+ artemis-native/src/main/c/cmake_install.cmake
+ artemis-native/src/main/c/org_apache_activemq_artemis_jlibaio_LibaioContext.h
+ cmake_install.cmake
+
+
%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]
diff --git a/pom.xml b/pom.xml
index 9a4a781577..ce3554025c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1096,6 +1096,14 @@
**/node/**
**/node_modules/**
**/package.json
+
+
+ **/CMakeCache.txt
+ **/CMakeFiles/
+ **/Makefile
+ **/cmake_install.cmake
+ artemis-native/src/main/c/org_apache_activemq_artemis_jlibaio_LibaioContext.h
+