title: Combining output of maven modules and parent
body: <p>My project consists of maven modules and a parent module. Each module will have its own xml resources.
  I want to change output directory of each module to parent module's directory. All the resources and class files will go to parent module's output directory.
  I changed outputdirectory of each submodule to parent module's output directory as the following:</p>
  
  <pre><code>&lt;build&gt;
         &lt;outputDirectory&gt;../target/classes&lt;/outputDirectory&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>The problems:</p>
  
  <ol>
  <li>When i clean the parent module using eclipse clean, it doesnt copy the outputs of sub modules to parent's module's output directory because i cant change output folder of submodules to parent module's output folder through eclipse project properties.</li>
  <li>When i mvn clean install, it copies the last build sub module's output to target directory because mvn clean is executed for each sub module, and it cleans the previously build module's outputs.</li>
  <li>I want to create a single jar for all modules, is that possible?</li>
  <li>How can i combine all outputs of parent and sub modules?</li>
  </ol>