<assembly>
    <id>with-dependencies</id>
    <formats>
        <format>zip</format>
    </formats>
    <componentDescriptors>
        <componentDescriptor>src/assembly/docs.xml</componentDescriptor>
    </componentDescriptors>
    <includeBaseDirectory>true</includeBaseDirectory>
    <moduleSets>
        <moduleSet>
            <includes>
                <include>org.springframework.ws:spring-ws-parent</include>
                <include>org.springframework.ws:spring-xml</include>
                <include>org.springframework.ws:spring-oxm</include>
                <include>org.springframework.ws:spring-oxm-tiger</include>
                <include>org.springframework.ws:spring-ws-core</include>
                <include>org.springframework.ws:spring-ws-core-tiger</include>
                <include>org.springframework.ws:spring-ws-support</include>
                <include>org.springframework.ws:spring-ws-security</include>
            </includes>
            <binaries>
                <includeDependencies>false</includeDependencies>
                <unpack>false</unpack>
                <outputFileNameMapping>dist/modules/${module.artifactId}-${module.version}.${module.extension}</outputFileNameMapping>
            </binaries>
            <sources>
                <fileSets>
                    <fileSet>
                        <directory>src/main/java</directory>
                    </fileSet>
                </fileSets>
                <outputDirectoryMapping>dist/module-sources/${module.artifactId}</outputDirectoryMapping>
            </sources>
        </moduleSet>
    </moduleSets>
    <files>
        <file>
            <source>target/${artifactId}-${version}.jar</source>
            <outputDirectory>dist</outputDirectory>
        </file>
        <file>
            <source>target/${artifactId}-${version}-sources.jar</source>
            <outputDirectory>dist</outputDirectory>
        </file>
    </files>
    <fileSets>
        <!-- Documentation -->
        <fileSet>
            <directory>target/site/apidocs</directory>
            <outputDirectory>docs/api</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>target/site/reference</directory>
            <outputDirectory>docs/reference</outputDirectory>
        </fileSet>
        <!-- Dependencies -->
        <fileSet>
            <directory>target/dependency</directory>
            <outputDirectory>lib</outputDirectory>
            <includes>
                <include>**/*.jar</include>
            </includes>
        </fileSet>
        <!-- Samples -->
        <fileSet>
            <directory>samples</directory>
            <outputDirectory>samples</outputDirectory>
            <includes>
                <include>**/readme.txt</include>
            </includes>
            <lineEnding>dos</lineEnding>
        </fileSet>
        <fileSet>
            <directory>samples</directory>
            <outputDirectory>samples</outputDirectory>
            <includes>
                <include>**/src/**</include>
                <include>**/build*.xml</include>
                <include>**/*.bat</include>
                <include>**/pom.xml</include>
                <include>**/Makefile</include>
                <include>mtom/**/spring-ws-logo.png</include>
                <include>maven-ant-tasks-*.jar</include>
                <include>**/ant-dotnet-*.jar</include>
                <include>**/*.exe</include>
            </includes>
            <excludes>
                <exclude>airline/activemq-data</exclude>
                <exclude>airline/activemq-data/**</exclude>
                <exclude>**/target</exclude>
                <exclude>**/target/**</exclude>
                <exclude>**/bin</exclude>
                <exclude>**/bin/**</exclude>
            </excludes>
        </fileSet>
    </fileSets>
</assembly>
