<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <id>demo</id> <formats> <format>tar.gz</format> </formats> <fileSets> <fileSet> <directory>${project.basedir}</directory> <outputDirectory>/</outputDirectory> <includes> <include>**/*.md</include> <include>**/*.cc</include> <include>**/*.h</include> <include>**/*.conf</include> <include>**/*.sh</include> <include>**/*.TXT</include> </includes> <excludes> <exclude>build/*</exclude> <exclude>test/*</exclude> </excludes> </fileSet> </fileSets> </assembly>