Dependency problems when building EMRAPI


We have the same issue again.

[ERROR] Failed to execute goal on project emrapi-omod: Could not resolve dependencies for project org.openmrs.module:emrapi-omod:jar:1.13-SNAPSHOT: Failed to collect dependencies at org.openmrs.module:emrapi-api-1.12:jar:1.13-SNAPSHOT -> org.openmrs.module:emrapi-api:jar:1.11.1: Failed to read artifact descriptor for org.openmrs.module:emrapi-api:jar:1.11.1: Could not find artifact org.openmrs.distro:referenceapplication:pom:2.3-SNAPSHOT in openmrs-repo ( -> [Help 1]

We switched to 2.4-SNAPSHOT of the distro version in emrapi. What do you think will be the correct fix for this?


Switching to 2.4-SNAPSHOT distro is a good option. Another possibility is to use provided scope for any openmrs dependencies as in this fix:

We’ll keep hitting that issue until we fix building the distro and release a new version. See: