Export-Service fixed the index. Thanks!

--
Stephen Kahmann

Software Engineer
iNovex Information Systems, Inc.
937-321-1923
[email protected]


Confidentiality Notice: This message is intended for the sole use of the 
individual to whom it is addressed and may contain information that is 
privileged, confidential, and exempt from disclosure under applicable law.  If 
the reader of this communication is not the intended recipient or the employee 
or agent responsible for delivering the communication to the intended 
recipient, you are hereby notified that any dissemination, distribution, or 
copying of this message is strictly prohibited.  If you have received this 
communication in error, please notify the sender immediately and delete this 
message.
  Original Message
From: Jean-Baptiste Onofré
Sent: Tuesday, May 5, 2015 2:01 AM
To: [email protected]
Reply To: [email protected]
Subject: Re: OBR Provide Service


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