I have a bundle that provides a service via SCR and consumes that service with
Blueprints. This works just fine when deployed locally, but when I try to
deploy via OBR and a Cave repository (proxied from Nexus), the OBR index has
the service requirement, but not the capability. For example:
...
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
...
Import-Package: ...
Import-Service: org.openrdf.repository.Repository;multiple:=false
Provide-Capability: osgi.service;effective:=active;objectClass="org.open
rdf.repository.Repository"
Service-Component: OSGI-INF/com.pid.repository.xml
Tool: Bnd-2.3.0.201405100607
karaf@root()> obr:info ...
------------
...
------------
presentationname: ...
symbolicname: ...
id: ...
version: 1.0.0.SNAPSHOT
uri: ...
Requires:
service:(service=org.openrdf.repository.Repository)
.
.
.
Capabilities:
bundle:{presentationname=name, symbolicname=symbolic.name,
manifestversion=2, version=1.0.0.SNAPSHOT}
karaf@root()>
karaf@root()> obr:deploy ...
Unsatisfied requirement(s):
---------------------------
(service=org.openrdf.repository.Repository)
...
karaf@root()>
I saw something similar here<https://ops4j1.jira.com/browse/PAXWEB-573>. Do I
need to use the deprecated <Export-Service> instruction in the
maven-bundle-plugin or is this a bug in the OBR tools?
Thanks!
--
Stephen