title: DeDuplication error with SBT assembly plugin
body: <p>I am trying to create an executable jar using SBT assembly plugin. </p>
  
  <p>I am ending up with below error : </p>
  
  <pre><code>[error] (app/*:assembly) deduplicate: different file contents found in the following:
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty.orbit/javax.servlet/orbits/javax.servlet-3.0.0.v201112011016.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-continuation/jars/jetty-continuation-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-http/jars/jetty-http-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-io/jars/jetty-io-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-security/jars/jetty-security-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-server/jars/jetty-server-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-servlet/jars/jetty-servlet-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-util/jars/jetty-util-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-webapp/jars/jetty-webapp-8.1.8.v20121106.jar:about.html
  [error] /Users/rajeevprasanna/.ivy2/cache/org.eclipse.jetty/jetty-xml/jars/jetty-xml-8.1.8.v20121106.jar:about.html
  [error] Total time: 2562 s, completed Dec 5, 2013 12:03:25 PM
  </code></pre>
  
  <p>After reading wikis of assembly plugin, i have added merge strategy in build.scala file. Seems it is not working. I am not sure whether it is right fix or not. Can someone suggest me the right strategy.</p>
  
  <p>Below is the code which i have in build.scala file : </p>
  
  <pre><code>mergeStrategy in assembly &lt;&lt;= (mergeStrategy in assembly) {
        (old) =&gt; {
          case "about.html" =&gt; MergeStrategy.discard
          case "logback.xml" =&gt; MergeStrategy.first //case PathList("logback.xml") =&gt; MergeStrategy.discard
          case x =&gt; old(x)
        }
      }
  </code></pre>
  
  <p>I have coded plugin integration with my app as per this doc : <a href="https://stackoverflow.com/questions/16856165/standalone-deployment-of-scalatra-servlet">Standalone deployment of Scalatra servlet</a></p>
  
  <p>I tried diffrent strategies like MergeStrategy.rename and MergeStrategy.deduplicate. But nothing works..
  Looking for help...</p>