How to load models from file system during server startup?

I would like to load models from the file system at startup of the services-jar-app. The [documentation]<INTERNAL_LINK> says:

Following properties point to the location on the filesystem from where the models should be loaded as XML on the start-up.

for configuration properties mgm.services.core.system-models.custom-document-models and mgm.services.core.system-models.custom-ui-models.

However I was not able to get this to work successfully. The models were not uploaded to the server after startup completed. My model xml files are contained in directories /cosmo-claims/application/models/picus and /cosmo-claims/application/models/melies. I tried with relative and absolute paths and with prepending a file:// url scheme.

What values do I have to specify for these properties to make this work?

Hi @andreas-fresh-mesa,

I’ve been working with Services and I could perform the uploading model at the beginning. Could you please provide us the version you use, how do you config in your pom file and your application.properties so I can have a look?

Please also be aware that with 2019.01u1 release, Services team strongly recommends to use services-distribution artifact. Please have a look at [Services documentation]<INTERNAL_LINK> for further information.

The problem actually was that the application.properties defined a spring.profiles which forced it to be excluded during startup in the default spring boot profile. After the entry was removed, everything worked as expected.