OSGI external configurator folder not loaded

233 Views Asked by At

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

1

There are 1 best solutions below

4
On BEST ANSWER

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