title: How to build deb package to contain single assembly jar with sbt-assembly and sbt-native-packager?
body: <p>Is it possible to use the <code>sbt-assembly</code> and <code>sbt-native-packager</code> plugins to create a java application archetype installation that instead of having the project jar and its dependencies in <code>&lt;app&gt;/lib</code> contains just the assembly jar?</p>
  
  <p>I've built a Spark application and I want to add the assembly to the context rather than adding each jar individually.</p>
  
  <p>Edit: I need to build deb packages for deployment. I want the deb package to contain the assembly not the project &amp; dependent jars.</p>
  
  <p>The filesystem layout should be</p>
  
  <pre><code>&lt;install_dir&gt;
       bin
           appname
       conf
           application.conf
       lib
           appname-assembly.jar
  </code></pre>
  
  <p>sbt-native-packager adds a symlink to /usr/bin which is convenient but not necessary.</p>