title: Best practise to use third party libraries in JBoss OSGI
body: <p>First of all I'm an OSGI newbie :-)</p>
  
  <p>I'm trying to build an OSGI application in JBoss EAP 6.1. But I currently have problems with OSGI third party libraries.</p>
  
  <p>I need the following package "javax.enterprise.context". So I have added "weld-osgi-bundle-1.2.0.Beta1.jar" to the deployments folder. When i started my application I got the error that the package "javax.interceptor" wasn't available. So I have added the following config the my configuration xml:</p>
  
  <pre><code>&lt;capability name="javax.inject.api"/&gt;
  &lt;capability name="javax.interceptor.api"/&gt;
  </code></pre>
  
  <p>Then I needed the package "org.jboss.weld.environment.osgi.api.annotation", so I added "weld-osgi-core-extension-1.2.0.Beta1.jar" to my deployments folder. But then I got the error that the package "ch.qos.logback.classic" wasn't available....</p>
  
  <p>So my question is, what is the best way to depend on third party lirbaries in jboss osgi? 
  In a "normal" ear file everything is packaged within that ear, is there a way to do this with osgi bundles?</p>
  
  <p>Thanks!</p>