Manage a large OSGi application

I have a large, growing OSGi application with several packages. I am curious to know the best way to manage this type of application. I currently use Eclipse and Maven, but although this is great for creating packages (via maven-bundle-plugin), managing the entire application is not easy at the moment.

What I would like to do is either have one launch configuration, or ONE pom.xml, which can be launched and the entire application / project will be created and launched. Also, I would like to have something that would be good for debugging.

I heard about PAX Construct and installed it in Eclipse, but so far it has not helped much (maybe I am not using it correctly).

I am sure that there are people with large OSGi applications that are managed correctly. Any advice that can be shared can greatly help.

Thanks Steven

+3
source share
4 answers

Launch configuration is possible through the Pax Runner . It allows you to choose the implementation of the OSGi platform, add the profiles (pre-packaged packs kits for some roles, such as web, log, ds, etc.) and has good support for support, for example, it can download packages from the repository Maven. As a result, you can have a startup configuration like

--platform=felix
--log=INFO
--profiles=scalamodules,ds,config,log
mvn:com.my/bundle/1.0.1-SNAPSHOT@update
# other bundles

, , .

+1

...

, "" .

, - Eclipse IDE .

Maven... , .

eclipse (, ), , Eclipse SCM.

cc .

, Buckminster .

, , , Bucky - , , .

( PAX, ...)

+1

OSGi,

OBR- , OBR, OBR- OSGIhost ?

0

, , . OSGI , (, Eclipse), .

RCP (Eclipse base), eclipse , exes .. Eclipse, - . Tycho , Maven Eclipse, - RCP, OSGI.

RCP, , , , , . , :

POM, , . - "-" .

pax . , "bundle-list" pom pom pax ( "provision" ). , pax, OSGI. "-" "" .

, , . "-" . , . , OSGI, , pax.

This works well so that we keep the list of bundles in one place, but there are still many hand-written scripts, and there are problems associated with the configuration between the two systems - for example. configuration files, beam start levels, etc.

0
source

Source: https://habr.com/ru/post/1714420/


All Articles