mekomsolutions / openmrs-module-initializer

The OpenMRS Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory.
MIT License
23 stars 79 forks source link

Spring context to shutdown before subsequent Validator invocations. #265

Closed Ruhanga closed 4 months ago

Ruhanga commented 6 months ago

In the context of the OpenMRS Packager plugin, when the Validator is used more than once during the same Maven build, the current Spring context is carried over and reused during subsequent validations (given there are more than one submodules requiring validation.)

Since some runtime properties may need to change across invocations (such as database connection properties for example), it is critical that the Spring context is properly shutdown carried prior to subsequent Validator invocations.

mks-d commented 4 months ago

@Ruhanga this is fixed right?