Effective Karaf Development Process

I would like to more efficiently develop OSGi packages using karaf.

My ideal process would be:

  • karaf is running in the background
  • deploy all my packages and dependencies (script)
  • make karaf watch my local maven repo for any changes to my packages
  • and install the individual artifacts and let karaf reload them.

I am currently using karaf build for production, but this does not allow me to keep track of the local maven repository, so each build cycle requires stopping and building the complete karaf distribution and starting it again, which is slow and inefficient.

I also have a function that describes all the dependencies, it will be great if I can reuse it, and not declare all the dependencies manually.

any suggestions how to accomplish this with karaf?

ps can this process be done using Gradle?

+4
source share
1 answer

The easiest way is to start clearing the caraf and install your function. Of course you can script this part.

Then enter bundle:watch *. This oversees your local maven registry for changes to SNAPSHOT packages.

If you are now executing a mvn clean installpackage in a separate project, the package is automatically updated.

karaf karaf debug. karaf . , eclipse 5005. : . mvn clean install bundle . , , .

, : , karaf. , karaf, . , , maven. , karaf.

+2

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


All Articles