title: Maven assembly plugin chmod output folder
body: <p>I am trying to use the maven-assembly plugin like so to build a zip of my project JAR and all libraries needed to run it:</p>
  
  <pre><code>        &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;2.2.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;make-assembly&lt;/id&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;single&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;descriptors&gt;
  &lt;descriptor&gt;src/main/assembly/exportWithDepends.xml&lt;/descriptor&gt;
                              &lt;/descriptors&gt;
                              &lt;finalName&gt;myname&lt;/finalName&gt;
                              &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>My assembly looks like:</p>
  
  <pre><code>&lt;assembly&gt;
      &lt;id&gt;jar-with-dependencies&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;zip&lt;/format&gt;
      &lt;/formats&gt;
      &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
      &lt;dependencySets&gt;
          &lt;dependencySet&gt;
              &lt;unpack&gt;false&lt;/unpack&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt;
              &lt;useProjectArtifact&gt;true&lt;/useProjectArtifact&gt;
              &lt;fileMode&gt;755&lt;/fileMode&gt;
          &lt;/dependencySet&gt;
      &lt;/dependencySets&gt;
      &lt;files&gt;
          &lt;file&gt;  
  &lt;source&gt;${project.build.directory}/${project.build.finalName}.jar&lt;/source&gt;
          &lt;/file&gt;
      &lt;/files&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>This works and makes the proper zip.</p>
  
  <p>Then the fileMode flag on the dependencySet gives each element inside of LIB a 755 CHMOD. The problem is, the actual LIB folder itself stays 777. Is there a way to make the LIB folder also get a 755?  </p>
  
  <p>Making maven do things it doesn't want to do always makes me sad :(</p>