Note that the Karaf 4 resolver can't really use OBR, it only supports the R5/Repository spec. The client code is located inside the features-core bundle and supports xml repositories as defined in the spec, but also JSON based repositories (where the bundle headers are transferred instead of the parsed capabilities / requirements).
2015-07-08 16:04 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: > Ahhh ok, understood. > > As you have Nexus Pro, you have OBR support (Nexus already provides the > repository.xml). In Karaf, you can install directly the OBR support (using > feature:install obr): it provides obr:url-add to add the OBR server, > obr:deploy, etc: > > http://karaf.apache.org/manual/latest-3.0.x/users-guide/obr.html > > Directly in felix, you can install org.apache.felix/org.osgi.service.obr > bundle: it will provide OBR "client". > > Regards > JB > > > On 07/08/2015 04:00 PM, Benson Margulies wrote: > >> I'm sorry to be unclear, you all answered my question, so I'll clarify >> what question I was asking. >> >> I have built some internal maven-centric tooling that can locate >> dependencies; it works by incorporating metadata in my bundles that >> lists the maven coordinates of the bundles that supply the imported >> packages. >> >> I'm considering replacing this tooling with code that searches for >> bundles using R5/OBR Repository. I already have Nexus Pro doing OBR, >> so I don't think I need Cave. I just need the client side >> implementation of the repository spec so that I can communicate with a >> repo and locate dependencies. I'm looking for some example code to >> learn from; the fact that the gogo shell talks to the Felix-specific >> service means it's not a great example, so I'm searching elsewhere. >> >> >> On Wed, Jul 8, 2015 at 9:44 AM, Jean-Baptiste Onofré <j...@nanthrax.net> >> wrote: >> >>> Not sure to follow you, but Cave expose the repository XML and Karaf >>> features resolver can use it as remote resources repository (or OBR can >>> do >>> that as well). >>> >>> Regards >>> JB >>> >>> >>> On 07/08/2015 03:38 PM, Benson Margulies wrote: >>> >>>> >>>> I am beginning to become less dense on this subject. To use the >>>> Repository service, I need someone's implementation that reads the XML >>>> over the network and does the work. >>>> >>>> On Tue, Jul 7, 2015 at 4:30 PM, Jean-Baptiste Onofré <j...@nanthrax.net> >>>> wrote: >>>> >>>>> >>>>> FYI, Apache Karaf Cave provides an implementation of OSGi Repository R5 >>>>> (with additional features like Maven repo, REST API, etc). >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> >>>>> On 07/07/2015 10:28 PM, Neil Bartlett wrote: >>>>> >>>>>> >>>>>> >>>>>> Hi Benson, >>>>>> >>>>>> First, why not read the Repository Service Specification? OSGi >>>>>> compendium >>>>>> R5, chapter 132. >>>>>> >>>>>> Regards, >>>>>> Neil >>>>>> >>>>>> On 7 Jul 2015, at 21:25, Benson Margulies <ben...@basistech.com> >>>>>>> wrote: >>>>>>> >>>>>>> Reading org.apache.felix.gogo.command.OBR, I see that it uses a >>>>>>> felix-specific service which in turn talks to >>>>>>> org.osgi.service.repository.Repository. I'm hoping to write some >>>>>>> container-independent code to look for things in an OBR repo; can >>>>>>> anyone advise? Should I just learn from >>>>>>> org.apache.felix.bundlerepository.impl.OSGiRepositoryImpl? >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>>>>>> For additional commands, e-mail: users-h...@felix.apache.org >>>>>>> >>>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>>>>> For additional commands, e-mail: users-h...@felix.apache.org >>>>>> >>>>>> >>>>> -- >>>>> Jean-Baptiste Onofré >>>>> jbono...@apache.org >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>>>> For additional commands, e-mail: users-h...@felix.apache.org >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>>> For additional commands, e-mail: users-h...@felix.apache.org >>>> >>>> >>> -- >>> Jean-Baptiste Onofré >>> jbono...@apache.org >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>> For additional commands, e-mail: users-h...@felix.apache.org >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >> For additional commands, e-mail: users-h...@felix.apache.org >> >> > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >