title: Maven assembly : including a file at the parent level of baseDirectory
body: <p>I am using maven assembly for a multi module project which looks like this</p>
  
  <pre><code>    PARENT\pom.xml 
        --warModule
           -- pom.xml
           --/target/module-1.war
        --configModule
          --pom.xml
          --target/**module-2.jar**
        --distrib
          --pom.xml
          --src/assembly/assembly.xml
  </code></pre>
  
  <p>In my distribution module, I want to package and create a jar file which should include only <strong>module-1.war</strong> and <strong>module-2.jar</strong> file.</p>
  
  <p>My distrib/pom.xml looks like this</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.wellsfargo.gateway.fx&lt;/groupId&gt;
      &lt;artifactId&gt;distrib&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;distrib&lt;/artifactId&gt;
  
  &lt;properties&gt;
      &lt;izpack.version&gt;5.1.2&lt;/izpack.version&gt;
      &lt;izpack.base.dir&gt;${project.build.directory}\${project.artifactId}-${project.version}-fx\izpack&lt;/izpack.base.dir&gt;
      &lt;izpack.standalone.compiler.version&gt;4.3.2&lt;/izpack.standalone.compiler.version&gt;
  &lt;/properties&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;version&gt;3.1.0&lt;/version&gt;
          &lt;configuration&gt;
              &lt;descriptors&gt;
                  &lt;descriptor&gt;distrib/src/assembly/assembly.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;
  </code></pre>
  
  <p>
  </p>
  
  <p>My assembly.xml looks like this 
      http://maven.apache.org/xsd/assembly-2.0.0.xsd">
      izpack
      ${main.basedir}
      
          dir
      
      false</p>
  
  <pre><code>&lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;${project.build.directory}&lt;/directory&gt;
          &lt;outputDirectory&gt;propdeploy&lt;/outputDirectory&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  &lt;files&gt;
  
      &lt;file&gt;
          &lt;source&gt;../warModule/target/module-1.war&lt;/source&gt;
          &lt;destName&gt;foreign-exchange-v2.war&lt;/destName&gt;
          &lt;outputDirectory&gt;wardeploy&lt;/outputDirectory&gt;
      &lt;/file&gt;
      &lt;file&gt;
          &lt;source&gt;../configModule/target/module-2.jar&lt;/source&gt;
          &lt;destName&gt;module-2.jar&lt;/destName&gt;
          &lt;outputDirectory&gt;wardeploy&lt;/outputDirectory&gt;
      &lt;/file&gt;
  
  &lt;/files&gt;
  
  &lt;dependencySets&gt;
      &lt;dependencySet&gt;
          &lt;unpack&gt;true&lt;/unpack&gt;
          &lt;useProjectArtifact&gt;true&lt;/useProjectArtifact&gt;
      &lt;/dependencySet&gt;
  &lt;/dependencySets&gt;
  </code></pre>
  
  <p></p>
  
  <p>The problem is that the current  does not identifies the parent directory of distribution and complains that <strong>noSuchFileFound</strong> in location xxxx/distrib/warModule/target/module-v1.war and same for module-v2.war. How do I get the files in the parent folder subpath?</p>
  
  <p>Any ideas?</p>