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.
karaf-pax-exam container (currently no component for it)
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.
However I found a workaround in the feature file.
Instead of define it the blueprint definition as a bundle
I define it as a configuration file
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.