<assembly
    xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
    
    <id>dist</id>
    <baseDirectory>${project.artifactId}-${project.version}</baseDirectory>

    <!-- Output tar.gz -->
    <formats>
        <format>tar.gz</format>
    </formats>

    <!-- Include docs and schema -->
    <fileSets>

            <!-- Include docs -->
            <fileSet>
                <outputDirectory>/</outputDirectory>
                <directory>doc</directory>
            </fileSet>

    </fileSets>

    <!-- Include self and all dependencies except guacamole-common 
         and guacamole-ext -->
    <dependencySets>
        <dependencySet>

            <outputDirectory>/lib</outputDirectory>
            <scope>runtime</scope>
            <unpack>false</unpack>
            <useProjectArtifact>true</useProjectArtifact>
            <useTransitiveFiltering>true</useTransitiveFiltering>

            <excludes>

                <!-- Do not include guacamole-common -->
                <exclude>org.glyptodon.guacamole:guacamole-common</exclude>

                <!-- Do not include guacamole-ext -->
                <exclude>org.glyptodon.guacamole:guacamole-ext</exclude>

            </excludes>
        </dependencySet>
    </dependencySets>

</assembly>
