<?xml version="1.0" encoding="UTF-8"?>
<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>src</id>
    <formats>
       <format>zip</format>
       <format>tar.gz</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>..</directory>
            <outputDirectory>${server.output.dir.prefix}-${server.output.dir.version}-src</outputDirectory>
            <includes>
                <include>**/*.xml</include>
                <include>**/src/**</include>
                <include>**/*.txt</include>
                <include>**/*.sh</include>
                <include>**/*.cli</include>
                <include>**/*.bat</include>
                <include>**/*.md</include>
                <include>tools/**</include>
                <include>mvnw</include>
                <include>mvnw.cmd</include>
                <include>.mvn/**</include>
            </includes>
            <excludes>
                <!-- Ignore build output -->
                <exclude>**/target/**</exclude>

                <!-- Ignore git repo -->
                <exclude>**/.git/**</exclude>

                <!-- Ignore IDE configuration and other hidden files-->
                <exclude>**/.project</exclude>
                <exclude>**/.classpath</exclude>
                <exclude>**/.settings</exclude>
                <exclude>**/.metadata</exclude>
                <exclude>**/.iml</exclude>
                <exclude>**/.ipr</exclude>
                <exclude>**/.iws</exclude>
                <exclude>**/.idea</exclude>
                <exclude>**/.idea/**</exclude>
                <exclude>nbactions.xml</exclude>
                <exclude>nb-configuration.xml</exclude>
                <exclude>catalog.xml</exclude>

            </excludes>
        </fileSet>
    </fileSets>
</assembly>