OpenMRS Sync 2.0 Demo environment

Thank you @dkayiwa. I took a look but I have an issue with using multiple versions of the dependency at the same time (I believe that first I need to add dependencies and then I can loading resources conditionally, correct me if I’m wrong).

That functionality could help if that third party library (https://github.com/openmrs/openmrs-module-atomfeed/blob/master/pom.xml#L63) would be part of OpenMRS core (“This is also a handy feature if your module uses a library that you ship with your module, but it is now included in OpenMRS core.” - https://wiki.openmrs.org/display/docs/Supporting+different+OpenMRS+versions).

Yes you load it conditionally.

Exactly but as I mentioned there is the issue with using multiple versions of the dependency in Maven. That’s why I consider shipping different builds for different platform versions.

Did you try creating different maven sub projects and conditionally load them? Something along these lines? https://github.com/openmrs/openmrs-module-emrapi/blob/master/omod/src/main/resources/config.xml#L32-L65

No in that module. Thanks a lot, I’ll try and then let you know if it is work.

I did as you suggested and it should works fine. Thank you @dkayiwa for your help.

1 Like

Thanks for updating us. Since you had already looked at that documentation, but was not helped, do you think you can update it with some more information which would have made it easier for you in the first pass?

The information placed on WIKI page is fine. When created the separate sub-modules (as you suggested) the dependency managing was more flexible and that was enough.