Hi,

just for information. If you combine Karaf with the Karaf subproject Cave
you receive a OBR server.
This way you can use a Karaf+Cave server as a central OBR server. It'll
automatically convert all maven coordinates to OBR.
Together with the OBR resolver in Karaf (as additional bundle) you can use
your feature files right away.
The OBR resolver will do the resolving for you from the OBR server
(Karaf+Cave).


Regards, Achim

2015-02-25 8:24 GMT+01:00 Johan Ström <jo...@stromnet.se>:

> Hi,
>
> while not strictly a Felix question, I'd like to crosspost a question I
> have regarding Gradle, OSGi and OBR here, as I hope there might be
> someone out there who has a good answer.. :)
>
> (Originally posted on:
>
> http://stackoverflow.com/questions/28698190/gradle-osgi-and-obr-or-other-repository
> )
>
> Previously I've been using Maven and the maven-bundle-plugin to archive
> the following:
>
> When doing mvn install, local maven repo contains my bundle + all my
> bundle's deps automatically
> * Local repo becomes OBR repository by mvn bundle:index, also
> repository.xml is automatically updated with every mvn install.
> * Local repo can now be used for Karaf bundle deployment
> Now, I'm looking to migrate some projects to Gradle, which is very nice
> in many ways. I'm successfully creating bundles using the
> 'org.dm.bundle' plugin (basic 'osgi' plugin did not allow me to
> auto-create service components).
>
> By using Gradle's maven plugin I can do gradle install to install my own
> bundle in local maven repo. I could then use bindex to manually (or
> through some gradle hacking) index the repo. However, my dependencies
> are not put into the maven repo, they are only stored in the gradle
> cache dir. Thus, I can not use the OBR repo to deploy in Karaf yet.
>
> I've been looking around a lot trying to find some good solution to
> this, but I have not found anything.
>
> I've looked at Karaf feature files, which would allow me to specify mvn
> URLs directly instead of relying on OBR, but I'd like to avoid messing
> with feature files manually, or all together if possible.
>
> There are references to using Nexus, but only Nexus Pro supports OBR
> from what I can see?
>
> I'm up for suggestions on alternative solutions as well; the main goal
> is that I shall be able to deploy my bundles + deps in Karaf. Maven does
> not have to be used at all really, although I need some way for
> different Gradle projects to find dependencies from some other projects
> (which are not part of the same multi-project).
>
> Any ideas or discussions to put me on the right track is appreciated!
>
>
> Thanks!
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to