javaosgiconfiguration-filesapache-felixenroute

OSGI external configurator folder not loaded


Based on Configurator Specification in OSGI Compendium we can specify configuration using json files.

It is also mentioned that default config location can be changed from OSGI-INF/configurator to other places using @RequireConfigurator("resources/configs").

But it didn't work for me, I'm not sure if I'm missing something. Below a screenshot that shows where file is located and also the content of package-info.java

enter image description here


Solution

  • Does your bundle contain the folder "resources/configs"?

    Did you make sure to -includeresource that folder into your bundle under the name "resources/configs"?

    For example:

    -includeresource: resources=src/main/resources