Hello,

I have set myself up with the open source nexus and some OBR respositories
with a lot of bundles from central...as well as some bundles that I have
created. I am now going through and figuring out how I would now like to
install my bundles using obr.

My apologies if I am missing something obvious here, but I am having some
trouble that I don't understand. From my obr repositories (and karaf 2.2.9)
I am trying to install the netty NIO framework via obr and for some reason
obr keeps pulling in osgi.cmpn. Here are org.jboss.netty requirements (in
the Manifest all imports are optional):

Requires:
   package:(&(package=com.google.protobuf))
   package:(&(package=javax.activation))
   package:(&(package=javax.net.ssl))
   package:(&(package=javax.servlet))
   package:(&(package=javax.servlet.http))
   package:(&(package=org.apache.commons.logging))
   package:(&(package=org.apache.log4j))
   package:(&(package=org.jboss.logging))
   package:(&(package=org.jboss.marshalling))
  
package:(&(package=org.jboss.netty.bootstrap)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.frame)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.http.websocketx)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.oneone)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.protobuf)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.serialization)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.codec.string)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.logging)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.jboss.netty.handler.timeout)(version>=3.5.0)(!(version>=4.0.0)))
  
package:(&(package=org.osgi.framework)(version>=1.5.0)(!(version>=2.0.0)))
  
package:(&(package=org.osgi.service.log)(version>=1.3.0)(!(version>=2.0.0)))
  
package:(&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
   package:(&(package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))
   package:(&(package=sun.misc))

The three osgi imports here are already exported by other bundles
(org.osgi.framework and org.osgi.service.tracker are exported by the system
bundle, org.osgi.service.log is exported by pax-logging). The netty packages
it requires it also exports. What other reason would there be for the
compendium API to be brought in here?

Alternatively, is there any way to stop obr:deploy from deploying optional
resources?:

karaf@root> obr:deploy org.jboss.netty
Target resource(s):
-------------------
   The Netty Project (3.5.2.Final)

Optional resource(s):
---------------------
   osgi.cmpn (4.2.0.200908310645)

Any suggestions here would be very helpful.

thanks in advance,
Gareth Collins




--
View this message in context: 
http://karaf.922171.n3.nabble.com/A-Basic-OBR-Question-tp4025744.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to