Camel 2.10 更改 blueprint.xml 位置

Camel 2.10 change blueprint.xml location

有没有办法更改 blueprint.xml 文件位置?在我的应用程序中,camel 在类路径和 "OSGI-INF\blueprint" 文件夹中查找它,但我想将它的引用指向该文件夹之外的另一个文件(就像第二个 blueprint.xml 选项一样)。

我已经在 pom.xml 中的 camel-maven-plugin 插件上尝试了 "fileApplicationContextUri" 选项,但它没有解决我的问题。

您应该在清单文件的 Bundle-Blueprint header 中说明蓝图文件的替代位置:

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