title: maven custom assembly - how to copy external reference folder
body: <p>I am building a simple Jar project with maven(latest) <BR/>
  When running <strong>maven package</strong>, I get the jar file at the target directory correctly,<BR/>
  I would like to customize the output so maven will copy some files and dependencies to the target alongside the jar.</p>
  
  <p>The current folder structure is:</p>
  
  <pre><code>/  
  -- resources  
  -- src/main/java/com..(project sources)
  -- src/main/assembly  (location of the assebmly.xml)
  </code></pre>
  
  <p>The desired target directory structure is:</p>
  
  <pre><code>target
       |
        -- myJar1.0.jar         (the artiface)   
        -- resources            (from the root build folder)
        -- lib                  (all the dependancies)
              |
              -- anotherJar-1.0.jar
              -- anotherJar2-1.0.jar
              -- anotherJar3-1.0.jar
  </code></pre>
  
  <p><BR/>
  I read <a href="http://maven.apache.org/plugins/maven-assembly-plugin/howto.html" rel="nofollow">custom assembly</a> on apache web site, 
  I added the configuration to maven-assembly-plugin and configured the assembly.xml 
  but I must do something wrong, I dont get the correct output,</p>
  
  <p>Here is the assembly.xml</p>
  
  <pre><code>&lt;assembly&gt;
  &lt;id/&gt;
  &lt;formats&gt;
      &lt;format&gt;dir&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
  &lt;dependencySets&gt;
      &lt;dependencySet&gt;
          &lt;outputDirectory&gt;/lib&lt;/outputDirectory&gt;
      &lt;/dependencySet&gt;
  &lt;/dependencySets&gt;
  &lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;target&lt;/directory&gt;
          &lt;outputDirectory&gt;/lib&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;*.jar&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;resources&lt;/directory&gt;
          &lt;outputDirectory&gt;/resources&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;*.*&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  </code></pre>
  
  <p> </p>
  
  <p>The target directory contain the lib with dependencies but it is located in folder with the artifact name,
  The resources directory is not being copy at all.</p>
  
  <p>Please advise
  Thank you</p>