There are two hapi-fhir projects :
- hapi-fhir/hapi-fhir (https://orch.psi.redhat.com/pnc-web/#/projects/1169/build-configs/7676)
- hapifhir/org.hl7.fhir.core (https://orch.psi.redhat.com/pnc-web/#/projects/1183/build-configs/7810)
They have cyclic dependencies on each other. hapi-fhir/hapi-fhir produces hapi-fhir-base, which is consumed by org.hl7.fhir.core, but org.hl7.fhir.core produces a utilities that are consumed by hapi-fhir.
We are getting duplicate artifacts in our MRRC because of this :
**
11:46:04 [ERROR] uniqueArtifacts(org.jboss.qa.marete.MavenRepoTest) Time elapsed: 8.21 s <<< FAILURE!11:46:04 java.lang.AssertionError: 11:46:04 [There must be no duplicates for ca.uhn.hapi.fhir:hapi-deployable-pom] 11:46:04 Expected size: 1 but was: 2 in:11:46:04 ["4.1.0.redhat-00002", "4.1.0.redhat-00003"]
hapi-fhir builds the 4.1.0.redhat-00003 version of this, which is used by camel
hapi-fhir uses a utility artifact from org.hl7.fhir.core that pulls in the 4.1.0.redhat-00002 version
Data from Grzegorz's tracking extension:
Downloaded artifact ca.uhn.hapi.fhir:hapi-deployable-pom:pom::4.1.0.redhat-00002 (repository: fuse-repository (http://10.0.144.111:8081/repository/maven-public/, default, releases+snapshots)) Model building for /Users/tcunning/.m2/repository/ca/uhn/hapi/fhir/org.hl7.fhir.utilities/4.1.0.redhat-00002/org.hl7.fhir.utilities-4.1.0.redhat-00002.pom
We need to rebuild these with some sort of synchronization so that they use the same versions.
I think this is the issue we're hitting :
https://docs.engineering.redhat.com/display/JP/Using+a+BOM+to+serve+both+as+input+and+output