title: install osgi dependencies via maven bundle and sling plugins
body: <p>I have an osgi-bundle which is created by using the maven-bundle-plugin:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
    &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
      &lt;instructions&gt;
        &lt;Bundle-SymbolicName&gt;${project.artifactId}&lt;/Bundle-SymbolicName&gt;
      &lt;/instructions&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The bundle is installed via the maven-sling-plugin.</p>
  
  <p>I have a fasterxml.jackson dependency which exists as an osgi-bundle in my .m2 repo and acts as a dependency in my project. </p>
  
  <p>How can I make maven deploy this dependency as an osgi-bundle as well?</p>
  
  <p>At the moment I have to install it manually in my osgi-container.</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
    &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
    &lt;version&gt;2.2.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Simplification:</p>
  
  <p>How do I make maven realize that an osgi-bundle which I refer to as a dependency in my pom.xml shall be installed in the osgi-container along with the bundles that depend upon it?</p>