<assembly>
    <id>example-with-dependencies</id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>zip</format>
    </formats>
    <dependencySets>
        <dependencySet>
            <outputDirectory>${project.artifactId}/lib</outputDirectory>
            <unpack>false</unpack>
            <scope>runtime</scope>
            <useProjectArtifact>false</useProjectArtifact>
        </dependencySet>

        <dependencySet>
            <outputDirectory>${project.artifactId}</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>${project.groupId}:${project.artifactId}:*</include>
            </includes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>${project.build.directory}</directory>
            <outputDirectory>${project.artifactId}/tests</outputDirectory>
            <includes>
                <include>${project.artifactId}-${project.version}-tests.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}</directory>
            <outputDirectory>${project.artifactId}/sources</outputDirectory>
            <includes>
                <include>${project.artifactId}-${project.version}-sources.jar</include>
                <include>${project.artifactId}-${project.version}-test-sources.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/resources/</directory>
            <outputDirectory>${project.artifactId}</outputDirectory>
            <includes>
                <include>*.png</include>
                <include>*.gif</include>
                <include>*.jpg</include>
                <include>*.pict</include>
                <include>*.mp3</include>
                <include>*.cnd</include>
                <include>*.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/resources/security/</directory>
            <outputDirectory>${project.artifactId}</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>workspace/</directory>
            <outputDirectory>${project.artifactId}</outputDirectory>
            <useDefaultExcludes>true</useDefaultExcludes>
        </fileSet>
    </fileSets>
    <files>
        <file>
            <outputDirectory>${project.artifactId}</outputDirectory>
            <source>src/main/config/run.sh</source>
            <fileMode>0744</fileMode>
            <filtered>true</filtered>
        </file>
        <file>
            <outputDirectory>${project.artifactId}</outputDirectory>
            <source>src/main/config/run.cmd</source>
            <fileMode>0744</fileMode>
            <filtered>true</filtered>
        </file>
    </files>
</assembly>
