Search code examples
javaapache-camelosgiblueprint-osgi

Camel 2.10 change blueprint.xml location


Is there an way to change the blueprint.xml file location? In my application, camel look for this on classpath and "OSGI-INF\blueprint" folder, but I want to point its reference to another file outside this folder (just like a second blueprint.xml option).

I've tried the "fileApplicationContextUri" option on camel-maven-plugin plugin inside my pom.xml, but it doesn't solve my problem.


Solution

  • You should state the alternative location of your Blueprint file in Bundle-Blueprint header in the manifest file:

    Bundle-Blueprint: lib/account.xml, security.bp, cnf/*.xml