
<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>bin</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <moduleSets>
    <moduleSet>
      <includes>
        <include>org.test:child1</include>
      </includes>
      <binaries>
        <outputDirectory>${artifact.artifactId}</outputDirectory>
        <includeDependencies>false</includeDependencies>
        <unpack>true</unpack>
        <unpackOptions>
          <includes>
            <include>org/test/child1/App2*</include>
          </includes>
        </unpackOptions>
      </binaries>
    </moduleSet>
    <moduleSet>
      <includes>
        <include>org.test:child2</include>
      </includes>
      <binaries>
        <outputDirectory>${artifact.artifactId}</outputDirectory>
        <includeDependencies>false</includeDependencies>
        <unpack>true</unpack>
        <unpackOptions>
          <excludes>
            <exclude>org/test/other/*</exclude>
          </excludes>
        </unpackOptions>
      </binaries>
    </moduleSet>
  </moduleSets>
</assembly>
