title: Errors using maven-bundle-plugin Embed-Dependency
body: <p>I have a Maven project that's building fine, and I'm attempting to add a reference to twitter4j.</p>
  
  <p>So I add this to the pom:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.twitter4j&lt;/groupId&gt;
          &lt;artifactId&gt;twitter4j-core&lt;/artifactId&gt;
          &lt;version&gt;[2.2,)&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;optional&gt;false&lt;/optional&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>When I build (mvn clean install) I get:</p>
  
  <pre><code>[ERROR] Error building bundle net.stevex.tweetfetcher:tweetfetcher-bundle:bundle:1.0-SNAPSHOT : Unresolved references to [twitter4j] by class(es) on the Bundle-Classpath[Jar:dot]: [net/stevex/tweetfetcher/impl/TweetFetcherImpl.class]
  </code></pre>
  
  <p>This makes sense .. the twitter4j package isn't embedded in the bundle.  So I add an Embed-Dependency to the maven-bundle-plugin's instructions:</p>
  
  <pre><code>&lt;Embed-Dependency&gt;*;scope=compile|runtime&lt;/Embed-Dependency&gt; 
  </code></pre>
  
  <p>And now when I build, I get:</p>
  
  <pre><code>[ERROR] Error building bundle net.stevex.tweetfetcher:tweetfetcher-bundle:bundle:1.0-SNAPSHOT : Unresolved references to [dalvik.system, javax.crypto, javax.crypto.spec, javax.management, javax.management.openmbean, org.apache.commons.logging, org.apache.log4j, org.slf4j.impl, twitter4j.internal.http.alternative] by class(es) on the Bundle-Classpath[Jar:dot, Jar:twitter4j-core-2.2.3.jar]: [twitter4j/internal/logging/CommonsLoggingLogger.class, twitter4j/internal/logging/Log4JLoggerFactory.class, twitter4j/auth/OAuthToken.class, twitter4j/internal/http/HttpClientFactory.class, twitter4j/auth/OAuthAuthorization.class, twitter4j/internal/logging/Log4JLogger.class, twitter4j/conf/ConfigurationBase.class, twitter4j/TwitterAPIMonitor.class, twitter4j/internal/logging/CommonsLoggingLoggerFactory.class, twitter4j/management/APIStatisticsOpenMBean.class, twitter4j/internal/logging/Logger.class]
  </code></pre>
  
  <p>I don't understand why the twitter4j classes are missing, and I don't understand the references to dalvik.system, javax.crypto, etc.  What's wrong here?</p>