Maven Fails to fetch openmrs-module-isanteplus 1.2-SNAPSHOT artifacts[SOLVED]

Hi all , am trying to build the Isanteplus reports module locally , But maven can not fetch the openmrs-module-isanteplus 1.2-SNAPSHOT artifact , with error

Could not resolve dependencies for project org.openmrs.module:isanteplusreports-api:jar:1.1-SNAPSHOT: Failed to collect dependencies at org.openmrs.module:isanteplus-api:jar:1.2-SNAPSHOT:

chckout https://openmrs.jfrog.io/artifactory/thirdparty/org/openmrs/module/isanteplus-api/1.2-SNAPSHOT/isanteplus-api-1.2-SNAPSHOT.pom.

full error log https://pastebin.com/nRmUrx6M .

cc @moshon @k.joseph @dkayiwa

1 Like

clone the module and build it locally and rebuild reports

2 Likes

Thanks @k.joseph , let me try building and installing it locally.

cool @k.joseph , Actually all the IsantePlus module dependences are not available in the maven Repository , so i just built and installed all the dependencies locally. All builds are succesful now .

1 Like

Hello @k.joseph , Am trying to run the Isante Distribution locally in a Standalone ,including all the Modules i have built , but i keep on getting a startup failure , full server logs here https://pastebin.com/BwZRLW4y

The Innitial failure starts at liquibase change set from the labintergration module

Change Set liquibase.xml::labintegration-2018-06-13-16-50::Arek Lalo failed.  Error: Error executing SQL INSERT INTO concept_reference_map (concept_id, concept_reference_term_id, concept_map_type_id, date_created, creator, uuid)
            VALUES ('163426', LAST_INSERT_ID(), '2', NOW(), 1, '531f7fed-f7b5-4fb9-9e39-fe6aa4a62ec2'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`concept_reference_map`, CONSTRAINT `map_for_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`))
liquibase.exception.DatabaseException: Error executing SQL INSERT INTO concept_reference_map (concept_id, concept_reference_term_id, concept_map_type_id, date_created, creator, uuid)

cc @dkayiwa

trace the failing liquibase changesets such as labintegration-2018-06-13-16-50 and identify any database issues that prohibiting your instance from firing

sure thats the innitial failure , it seems the change-set references some concepts not existing in the Db , let me try to trace those concepts referenced

@k.joseph , does the labintergration module expect to work with a DB pre-loaded with the CIEL dictionary ??

am not sure i know whether it does, trace where that changeset is seating, know what it should be doing, do it manually against your instance. add an entry for it in the changelog table and proceed

1 Like

The change set tries to add new concept mappings to some CIEL concepts , So it expects those Concepts to exist, and if the concepts do not exist, then it fails

So i have loaded the Ciel Dictionary in my local instance , let me rerun and see