Hi,

A maven pom declares dependencies on a set of artifacts with different scopes. Maven's dependencies are a pretty generic model, and scopes include "compile", "provided", "test" and "runtime".

The "runtime" scope is used for example by the exec-maven-plugin which will:
* download all the necessary dependencies (compile, provided and runtime);
* create a classpath that points to them; and
* launch the application's main method
using just the information in the pom-file.

It seems entirely possible to build an OSGi provisioning system based on Maven rather than OBR; every bundle has a pom that defines the artifacts it depends on and they can be found and downloaded automatically as the exec-maven-plugin demonstrates. Of course this would rely on having correct runtime-scope dependencies in maven poms which is often not the case, but the principle seems sound.

Now I can see some possible advantages that OBR has over Maven, but I would have thought that somebody would already have written a blog article about this, or that the info would be on the Felix OBR project's wiki or similar. However I just cannot find anything about this topic, and hoped somebody here would be able to point me at the relevant info..

I'm familiar with Karaf's features-files which work fine with Maven. I know that they also have OBR-related information in them (dependency="true") - but I've never understood why that is useful. The karaf-cave website describes what it does (how OBR works) but doesn't have any information about what advantages OBR-style dependencies have over Maven-style dependencies, which is what I was hoping to find.

Thanks,
Simon

On 06/04/2015 08:32 PM, Jean-Baptiste Onofré wrote:
Hi Simon,

Maven is build time, OBR is runtime.

You can also take a look on:
- Karaf and features
- Karaf Cave OBR

Regards
JB

On 06/04/2015 08:27 PM, Simon Kitching wrote:
Hi All,

Can anyone provide me with a link to a comparison of OBR and Maven? I
can find reasonable amounts of information about what OBR does, but
nothing about the motivation to create it given that Maven already
existed...

Thanks,
Simon

---------------------------------------------------------------------
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

Reply via email to