title: OSGI Bundle vs jar dependency
body: <p>I'm trying to understand the difference between the following</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.myspace.order&lt;/groupId&gt;
          &lt;artifactId&gt;dal&lt;/artifactId&gt;
          &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.myspace.order&lt;/groupId&gt;
          &lt;artifactId&gt;dal&lt;/artifactId&gt;
          &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
          &lt;type&gt;bundle&lt;/type&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>The dal artifact itself has packaging specified as bundle as:</p>
  
  <pre><code>&lt;packaging&gt;bundle&lt;/packaging&gt;
  </code></pre>
  
  <p>Now when I deploy the dal artifact, I see it published in the repo as a jar (with a manifest within it). In this case, what should my dependency on dal be. Should it be of type bundle or jar? If I am doing OSGI, I assume way would be to have the type specified as bundle. Is this correct? Or, can I just have a jar dependency here? </p>