title: Unable to build assembly: Unable to resolve root: missing requirement with karaf-bundle-plugin
body: <p>I've created an example bundle project with maven-bundle-plugin, and the following MANIFEST.MF was created:</p>
  
  <pre><code>Manifest-Version: 1.0
  Bnd-LastModified: 1486554665411
  Build-Jdk: 1.8.0_121
  Bundle-Description: Helper classes
  Bundle-ManifestVersion: 2
  Bundle-Name: core.util
  Bundle-SymbolicName: core.util
  Bundle-Version: 1.0.0.SNAPSHOT
  Created-By: Apache Maven Bundle Plugin
  Export-Package: com.example.core.util;version="1.0.0",com.example.core.util.ex
   tension;version="1.0.0"
  Originally-Created-By: Apache Maven Bundle Plugin
  Require-Capability: osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.8))"
  Tool: Bnd-3.2.0.201605172007
  </code></pre>
  
  <p>Now I've added that bundle as the dependency to the assembly build with maven-karaf-plugin:</p>
  
  <pre><code>&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.example&lt;/groupId&gt;
      &lt;artifactId&gt;example-karaf-dist&lt;/artifactId&gt;
      &lt;version&gt;1.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;karaf-assembly&lt;/packaging&gt;
  
      &lt;dependencies&gt;
  
  (...)
  
          &lt;dependency&gt;
            &lt;groupId&gt;com.example&lt;/groupId&gt;
            &lt;artifactId&gt;core.util&lt;/artifactId&gt;
            &lt;version&gt;${taxcloud.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;       
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.karaf.tooling&lt;/groupId&gt;
                  &lt;artifactId&gt;karaf-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;4.0.7&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;bootFeatures&gt;
                          &lt;feature&gt;standard&lt;/feature&gt;
                          &lt;feature&gt;webconsole&lt;/feature&gt;
                      &lt;/bootFeatures&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>However, I'm unable to build because I get the following error:</p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.karaf.tooling:karaf-maven-plugin:4.0.7:assembly
    (default-assembly) on project example-karaf-dist: Unable to build
    assembly: Unable to resolve root: missing requirement [root]
    osgi.identity; osgi.identity=core.util; type=osgi.bundle;
    version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; resolution:=mandatory
    [caused by: Unable to resolve core.util/1.0.0.SNAPSHOT: missing
    requirement [core.util/1.0.0.SNAPSHOT] osgi.ee;
    filter:="(&amp;(osgi.ee=JavaSE)(version=1.8))"] -> [Help 1]</p>
  </blockquote>
  
  <p>I've failed to understand the error message, what can't be found here? I have core.util bundle in version 1.0.0.SNAPSHOT, so everything should work. What is the problem here? How can I include my bundle in karaf assembly?</p>