<assembly>
    <id>component-with-dependencies</id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>zip</format>
    </formats>
    <dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <unpack>false</unpack>
            <scope>runtime</scope>
            <useProjectArtifact>false</useProjectArtifact>
            <excludes>
                <exclude>${project.groupId}:*</exclude>
                <!--<exclude>javax.jcr:jcr</exclude>-->
            </excludes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>/</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>${project.groupId}:${project.artifactId}:*</include>
            </includes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>${project.build.directory}</directory>
            <outputDirectory>/tests</outputDirectory>
            <includes>
                <include>${project.artifactId}-${project.version}-tests.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>${project.build.directory}</directory>
            <outputDirectory>/sources</outputDirectory>
            <includes>
                <include>${project.artifactId}-${project.version}-sources.jar</include>
                <include>${project.artifactId}-${project.version}-test-sources.jar</include>
            </includes>
        </fileSet>
        <!--
          Gather into the distribution the various text files for inclusion
        -->
        <fileSet>
            <directory>src/main/resources</directory>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>README*</include>
                <include>LICENSE*</include>
                <include>NOTICE*</include>
                <include>AUTHORS*</include>
                <include>COPYRIGHT*</include>
                <include>*.txt</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/assembly</directory>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>README*</include>
                <include>LICENSE*</include>
                <include>NOTICE*</include>
                <include>AUTHORS*</include>
                <include>COPYRIGHT*</include>
                <include>*.txt</include>
            </includes>
        </fileSet>
    </fileSets>
</assembly>
