Quick turnaround with Maven and OSGi

I am looking for a development model with fast processing time when developing a multi-module application based on maven, OSGi.

In fact, the best solution seems to be the Pax Construct maven plugin (which, in turn, calls the Pax Runner) to provide maven generated pools. However, I did not find a way to deploy to the working OSGi container using this (or another) maven plugin. mvn pax:runalways launches the OSGi platform again. AFAIK also cannot be deployed to an existing OSGi container that is not managed by Pax Runner (e.g. Glassfish v3 or SpringSource dm Server).

Is there a maven plugin that allows you to quickly deploy the maven module to a running OSGi container, ideally capable of connecting to the life cycle phase packaging?

How is your development cycle when developing OSGi-based applications using maven?

+3
source share
2 answers

If you use Glassfish, you can configure the maven target / directory, which GlassFish will browse for updates, and then GlassFish will automatically install and run the jar when it is created, it will remove it when the jar is removed, and update if the package is updated in the target catalog. To do this, create a file named

org.apache.felix.fileinstall-maven.cfg : felix.fileinstall.dir =//// felix.fileinstall.poll = 5000 felix.fileinstall.bundles.new.start =

domain1/autodeploy/bundles/

, . Sahoo

+2

- , , , GlassFish, invigles OSGI --type osgi deploy:

asadmin deploy --type osgi my-osgi-bundle-x.y.z.jar

, maven-glassfish-plugin. maven-embedded-glassfish-plugin embedded-glassfish:admin, :

. , jdbc.

, , , --type osgi embedded-glassfish:admin ( ), OSGI .

+1

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


All Articles