The relevant part is about the -Ddistro argument. You can launch a custom server based on whatever you decide to configure in the custom config. file openmrs-custom-distro.properties.
Note that for the sake of the example I have assumed
That openmrs-custom-distro.properties is where you launch the SDK command.
If I understand correctly you are up to some work on the tip of EMR APIās master branch and you also want the latest Core. So those two are in development under the following versions:
So I guess that what you want to do is start from the openmrs-distro.properties of the Ref App 2.9.0-SNAPSHOT and up those two versions, leading to this below (pay attention to those two below in the list):
Where you should obviously replace āpassā by your MySQL root password. Answer the usual questions, in particular pick Java 8 when asked for it. Then run the server:
Actually about the EMR-api, the commits am working are not yet merged. so as long as i can get a refference application on platform 2.2.0, there am good to go.
You must have done something wrong there. I just did some trials and you need both Core 2.2.0-SNAPSHOT and EMR API 1.25.0-SNAPSHOT together for this modified Ref App 2.9.0-SNAPSHOT to startup.
And yet, it wonāt quite startup, I stumbled upon an error that the Ref App module wouldnāt start, this is the stack trace then:
java.lang.RuntimeException: failed to setup the required modules
at org.openmrs.module.referenceapplication.ReferenceApplicationActivator.started(ReferenceApplicationActivator.java:112)
at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:927)
at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:847)
at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:632)
at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:612)
at org.openmrs.web.Listener.startOpenmrs(Listener.java:251)
at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
Caused by: java.lang.NullPointerException
at org.openmrs.module.referenceapplication.ReferenceApplicationActivator.mapMetadata(ReferenceApplicationActivator.java:146)
at org.openmrs.module.referenceapplication.ReferenceApplicationActivator.setupEmrApiGlobalProperties(ReferenceApplicationActivator.java:127)
at org.openmrs.module.referenceapplication.ReferenceApplicationActivator.started(ReferenceApplicationActivator.java:98)
... 6 more
So the problem happens here in the Ref App moduleās activator. This is a place where the Ref App module relies on EMR API, so one would need to debug to understand what exactly goes wrong. @dkayiwa, just in case you would have any idea?
Apart from that everything else could start. But, because of the Ref App module that could not start, Reference Demo Data and Reference Metadata could not start either.