title: How do you create a maven assembly that includes shell scripts and properrties file not in jar?
body: <p>Im trying to use Maven to build a standalone application</p>
  
  <p>Using the assembly plugin described at 
  <a href="https://stackoverflow.com/questions/10224631/how-do-you-create-a-standalone-application-with-dependencies-intact-using-maven">How do you create a standalone application with dependencies intact using Maven?</a></p>
  
  <p>This creates widget distribution zip containing</p>
  
  <pre><code>widget-1.0
  widget-1.0/lib/widget.jar
  widget-1.0/lib/3rdpartyjar1.jar
  widget-1.0/lib/3rdpartyjar2.jar
  </code></pre>
  
  <p>...</p>
  
  <p>but in my src tree I have:</p>
  
  <pre><code>src/main/bin/widget.sh 
  </code></pre>
  
  <p>and this doesnt make into the final distribution zip, I would like it to go here</p>
  
  <pre><code>widget-1.0/widget.sh
  </code></pre>
  
  <p>Also in my src tree i have a properties file in</p>
  
  <pre><code>src/main/properties/widget.properties
  </code></pre>
  
  <p>that currently make its way into </p>
  
  <pre><code>widget-1.0/lib/widget.jar
  </code></pre>
  
  <p>but because I want it to be editable I want it to be in </p>
  
  <pre><code>widget-1.0/widget.properties
  </code></pre>
  
  <p>Is it possible to do this within maven ?</p>
  
  <p><strong>EDIT</strong>
  Using information in blog got working as follows:</p>
  
  <ol>
  <li>Renamed bin folder to scripts folder because this is standard Maven name  </li>
  <li>Moved widget.properties into script folder  </li>
  <li>Modifed my assembly.xml to contain a fileset</li>
  </ol>
  
  <p>Here is the new 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.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"&gt;
      &lt;id&gt;distribution&lt;/id&gt;
      &lt;formats&gt;
          &lt;format&gt;zip&lt;/format&gt;
      &lt;/formats&gt;
      &lt;dependencySets&gt;
          &lt;dependencySet&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
              &lt;outputDirectory&gt;lib&lt;/outputDirectory&gt;
              &lt;unpack&gt;false&lt;/unpack&gt;
          &lt;/dependencySet&gt;
      &lt;/dependencySets&gt;
      &lt;fileSets&gt;
          &lt;fileSet&gt;
              &lt;directory&gt;${project.build.scriptSourceDirectory}&lt;/directory&gt;
              &lt;outputDirectory&gt;&lt;/outputDirectory&gt;
              &lt;includes&gt;
                  &lt;include&gt;widget.sh&lt;/include&gt;
                  &lt;include&gt;widget.properties&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
      &lt;/fileSets&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>However minor point but unable to find a list of maven standard folder variables anywhere , i.e is there an equivalent to ${project.build.scriptSourceDirectory} for the properties folder</p>