title: Apache felix and Maven - Unable to resolve: missing requirement osgi.wiring.package
body: <p>I'm new in Apache Felix. I'm trying to create a bundle for implementing the configurarion admin. These are my two class of my project:</p>
  
  <p><strong>Activator.java</strong></p>
  
  <pre><code>public void start(BundleContext context) throws Exception {
      Hashtable&lt;String, String&gt; prop = new Hashtable&lt;String, String&gt;();
      prop.put("Message", "Ciao");
  
      System.out.println("Prova");
  
      context.registerService(ManagedService.class.getName(), new Configuration(), prop);
  }
  
  public void stop(BundleContext context) throws Exception {
      //The service will be unregistered automatically
  }
  </code></pre>
  
  <p><strong>Configuration.java</strong></p>
  
  <pre><code>private String msg = "";
  
  public void updated(Dictionary prop) {
      if(prop == null) {
          System.out.println("Configuration reset");
          msg = null;
      }
      else {
          msg = (String)prop.get("Message");
          System.out.println("Configuration set. Message: " + msg);
      }
  }
  </code></pre>
  
  <p>These are my pom.xml dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.osgi&lt;/groupId&gt;
      &lt;artifactId&gt;org.osgi.compendium&lt;/artifactId&gt;
      &lt;version&gt;${org.osgi.compendium.version}&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.osgi&lt;/groupId&gt;
      &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
      &lt;version&gt;${org.osgi.core.version}&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>these are my pom.xml plugins:</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;version&gt;2.5.3&lt;/version&gt;
      &lt;extensions&gt;true&lt;/extensions&gt;
      &lt;configuration&gt;
          &lt;supportedProjectTypes&gt;
              &lt;supportedProjectType&gt;jar&lt;/supportedProjectType&gt;
              &lt;supportedProjectType&gt;bundle&lt;/supportedProjectType&gt;
              &lt;supportedProjectType&gt;war&lt;/supportedProjectType&gt;
          &lt;/supportedProjectTypes&gt;
          &lt;instructions&gt;
              &lt;Bundle-ManifestVersion&gt;2&lt;/Bundle-ManifestVersion&gt;
              &lt;Bundle-Name&gt;${project.name}&lt;/Bundle-Name&gt;
              &lt;Bundle-SymbolicName&gt;${project.artifactId};singleton:=true&lt;/Bundle-SymbolicName&gt;
              &lt;Bundle-Version&gt;${project.version}&lt;/Bundle-Version&gt;
              &lt;Bubdle-Activator&gt;org.apache.felix.conf.Activator&lt;/Bubdle-Activator&gt;
              &lt;Bundle-Vendor&gt;FINO&lt;/Bundle-Vendor&gt;
              &lt;Import-Package&gt;
                  org.osgi.framework,
                  org.osgi.service.cm
              &lt;/Import-Package&gt;
          &lt;/instructions&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When i execute my project in the apache felix framework 5.0.1 with terminal i get this error:</p>
  
  <pre><code>org.osgi.framework.BundleException: Unable to resolve org.apache.felix.conf [34](R 34.6): 
      missing requirement [org.apache.felix.conf [34](R 34.6)] osgi.wiring.package; 
          (&amp;(osgi.wiring.package=org.osgi.service.cm)(version&gt;=1.3.0)(!(version&gt;=2.0.0))) 
      Unresolved requirements: [[org.apache.felix.conf [34](R 34.6)] osgi.wiring.package; 
          (&amp;(osgi.wiring.package=org.osgi.service.cm)(version&gt;=1.3.0)(!(version&gt;=2.0.0)))]
  </code></pre>
  
  <p>I have also tryed to follow the solution of this stackoverflow article <a href="https://stackoverflow.com/questions/30480508/karaf-maven-unable-to-resolve-missing-requirement-osgi-wiring-package">Karaf / Maven - Unable to resolve: missing requirement osgi.wiring.package</a> but it talk about apache karaf not felix. Please help me</p>
  
  <h3>UPDATE</h3>
  
  <p>This is my MANIFEST.MF:</p>
  
  <pre><code>    Manifest-Version: 1.0
      Bnd-LastModified: 1438261057801
      Build-Jdk: 1.7.0_79
      Built-By: apache
      Bundle-Description: A maven project that implements apache felix
      Bundle-ManifestVersion: 2
      Bundle-Name: ServerConfig
      Bundle-SymbolicName:tutorials.fino.apachefelix.org.apachefelix.serverco
       nf
      Bundle-Version: 0.0.1.SNAPSHOT
      Created-By: Apache Maven Bundle Plugin
      Export-Package: org.apachefelix.serverconf;version="0.0.1";uses:="org.os
       gi.framework,org.osgi.service.cm"
      Import-Package: org.osgi.framework;version="[1.7,2)",org.osgi.service.cm
       ;version="[1.5,2)"
      Require-Capability: osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.5))"
      Tool: Bnd-2.3.0.201405100607
  </code></pre>