title: OSGI org.slf4j.impl dependency
body: <p>I'm new to OSGI (sorry) and having a few issues trying to deploy my package and related dependencies.</p>
  
  <p>This is my POM:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.felix.test&lt;/groupId&gt;
      &lt;artifactId&gt;com.felix.test&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;bundle&lt;/packaging&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;2.5&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.scr.annotations&lt;/artifactId&gt;
              &lt;version&gt;1.9.6&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;4.5&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.ehcache&lt;/groupId&gt;
              &lt;artifactId&gt;ehcache&lt;/artifactId&gt;
              &lt;version&gt;2.10.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;3.4&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.5&lt;/source&gt;
                      &lt;target&gt;1.5&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.4&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;instructions&gt;
                          &lt;Export-Package&gt;
                              com.felix.test.search
                          &lt;/Export-Package&gt;
                          &lt;Bundle-SymbolicName&gt;
                              ${project.artifactId}
                          &lt;/Bundle-SymbolicName&gt;
                          &lt;Bundle-Activator&gt;
                              com.felix.test.Activator
                          &lt;/Bundle-Activator&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Then I'm bundling this using the Maven command:</p>
  
  <blockquote>
    <p>mvn org.apache.felix:maven-bundle-plugin:bundleall</p>
  </blockquote>
  
  <p>This is successful and generates my bundle as well as 3 dependency bundles:</p>
  
  <ul>
  <li>net.sf.ehcache_2.10.0.jar</li>
  <li>org.apache.commons.lang3_3.4.0.jar</li>
  <li>slf4j.api_1.7.7.jar</li>
  </ul>
  
  <p>This seems OK and I can install and start the first two but when I try and start slf4j I get the following exception:</p>
  
  <blockquote>
    <p>org.osgi.framework.BundleException: Unable to resolve slf4j.api [25](R
    25.0): missing requirement [slf4j.api [25](R 25.0)] osgi.wiring.package;
    (&amp;(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0)) Unresolved
    requirements: [[slf4j.api [25](R 25.0)] osgi.wiring.package;
    (&amp;(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))]</p>
  </blockquote>
  
  <p>I'm pretty sure I'm missing something very simple but can't pin it down. Any help would be much appreciated!</p>