Karaf-Pax-Exam Container - Support for "BluePrint" bundles

Description

I would like to request a "blueprint" feature for the karaf-pax-exam container which supports Karaf's option to generate a bundle from a blueprint configuration.

Karaf allows dropping of blueprint files into /deploy folder and will try to generate a full-blown bundle from it if all referenced classes can be resolved via Dynamic-ImportPackage: * This is extremely helpful for deploying datasource bundles, etc. and updating them on the fly. The Maven notation via shell is something like: "install blueprint:mvn:org.example/blueprint/1.0.0/xml" and I could imagine a static "blueprint()" method similar to "features()" for interpreting the following resource as blueprint config.

Environment

karaf-pax-exam container (currently no component for it)

Activity

Show:
Michael Taeschner
June 20, 2013, 12:46 PM

Google Groups topic where it is discussed: https://groups.google.com/d/topic/ops4j/Ftckvf_3BE0/discussion

Arnaud Deprez
December 8, 2015, 2:31 PM

Hi,

I just found this issue which is not active for 2 years now but I have the same requirements.
Basically, in karaf, you can use :

  • in shell: install -s blueprint:mvn:org.example/blueprint/1.0.0/xml as defined in the description

  • in a feature file: <bundle>blueprint:mvn:org.example/blueprint/1.0.0/xml</bundle>
    But it doesn't work with pax-exam as it doesn't know the protocol 'blueprint'

It would be nice to have this support.

Regards,

Arnaud Deprez
December 8, 2015, 2:36 PM

However I found a workaround in the feature file.
Instead of define it the blueprint definition as a bundle

  • <bundle>blueprint:mvn:org.example/blueprint/1.0.0/xml</bundle>
    I define it as a configuration file

  • <configfile finalname="deploy/xml">mvn:org.example/blueprint/1.0.0/xml</configfile>
    which basically download the xml file from the maven repository and put it in the hot deploy folder and as karaf supports it, it just works.

Assignee

Unassigned

Reporter

Michael Taeschner

Labels

Components

Affects versions

Priority

Major
Configure