title: Assembly the site including children
body: <p>Deployment team require that we package our maven site as a war and publish it in Archiva repository.</p>
  
  <p>Our first problem, how to assembly the war, with the children sites inside.</p>
  
  <p>I try this, but it is not working. <strong>The war generated does not include children sites</strong>.
  I research in maven documentation, google, in stackoverflow, etc.. and I don't found anything.</p>
  
  <p>Project structure folder:</p>
  
  <pre><code>.
  ├── child-yyyy-1
  │   ├── pom.xml
  │   └── src
  │       ├── main
  │       │   └── java
  │       │       └── com
  │       │           └── xxx
  │       │               └── App.java
  │       └── test
  │           └── java
  ├── child-yyyy-2
  │   ├── pom.xml
  │   └── src
  │       ├── main
  │       │   └── java
  │       │       └── com
  │       │           └── xxx
  │       │               └── App.java
  │       └── test
  │           └── java
  └── parent-site
      ├── assembly
      │   └── api-site.xml
      └── pom.xml
  </code></pre>
  
  <p>parent pom:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.xxx&lt;/groupId&gt;
    &lt;artifactId&gt;parent-yyyy&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;name&gt;parent-yyyy&lt;/name&gt;
  
    &lt;modules&gt;
      &lt;module&gt;../child-yyyy-1&lt;/module&gt;
      &lt;module&gt;../child-yyyy-2&lt;/module&gt;
    &lt;/modules&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;descriptors&gt;
                          &lt;descriptor&gt;assembly/api-site.xml&lt;/descriptor&gt;
                      &lt;/descriptors&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;single&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>api-site.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;assembly
      xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation=" http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"&gt;
      &lt;id&gt;api-site&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;war&lt;/format&gt;
      &lt;/formats&gt;
      &lt;baseDirectory&gt;/&lt;/baseDirectory&gt;
      &lt;fileSets&gt;
          &lt;fileSet&gt;
              &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
              &lt;directory&gt;target/site&lt;/directory&gt;
          &lt;/fileSet&gt;
          &lt;fileSet&gt;
              &lt;outputDirectory&gt;/child-yyyy-1/&lt;/outputDirectory&gt;
              &lt;directory&gt;child-yyyy-1/target/site&lt;/directory&gt;
          &lt;/fileSet&gt;
          &lt;fileSet&gt;
              &lt;outputDirectory&gt;/child-yyyy-2/&lt;/outputDirectory&gt;
              &lt;directory&gt;child-yyyy-2/target/site&lt;/directory&gt;
          &lt;/fileSet&gt;
      &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>child 1 pom:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;groupId&gt;com.xxx&lt;/groupId&gt;
      &lt;artifactId&gt;parent-yyyy&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../site&lt;/relativePath&gt;
    &lt;/parent&gt;
    &lt;groupId&gt;com.xxx&lt;/groupId&gt;
    &lt;artifactId&gt;child-yyyy-1&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;child-yyyy-1&lt;/name&gt;
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>child 2 pom:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;groupId&gt;com.xxx&lt;/groupId&gt;
      &lt;artifactId&gt;parent-yyyy&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../site&lt;/relativePath&gt;
    &lt;/parent&gt;
    &lt;groupId&gt;com.xxx&lt;/groupId&gt;
    &lt;artifactId&gt;child-yyyy-2&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;child-yyyy-2&lt;/name&gt;
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>