title: dependsOn to instruct sbt to package dependent projects in multi-project build?
body: <p>I created a multi-project build in sbt. Here's <strong>build.sbt</strong> in the main directory:</p>
  
  <pre><code>lazy val root = project in file(".") aggregate(data, reco, result)
  
  lazy val data = project dependsOn(common)
  
  lazy val reco = project 
  
  lazy val result = project dependsOn(common)
  
  lazy val common = project
  </code></pre>
  
  <p>When I use <code>package</code> or <code>one-jar</code> command, the classes and resources in <code>common</code> project are not packaged into <code>data</code> or <code>result</code> jars. So when I run the generated jar by </p>
  
  <pre><code>java -jar data_2.10-1.0-onejar.jar
  </code></pre>
  
  <p>it leads to NoClassDefFoundError as a consequence. </p>
  
  <p>So could anyone help me deal with such problem? Thanks in advance.</p>