Hi,

As Cave use "old" bundlerepository dependency, can you try to use Export-Service (even if it should be OK).

Regards
JB

On 05/04/2015 08:11 PM, Stephen Kahmann wrote:
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

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to