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
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