Error after including <properties> <openMRSBuildVersion>1.10.2</openMRSBuildVersion> </properties>

As i want to import the the DbSession and DbSessionFactory for the ticket i am working on,i add 1.10.2 in https://pastebin.com/Ac6jgXLn and it appears as this https://pastebin.com/5ftAZM3H

And the importation is successful. But on building i get to this error ,https://pastebin.com/XtD9pkym Any suggestion on the error? @dkayiwa @samuel34 @ruhanga

Can you also share the git link of the POM file your modifying?

its the first one i included above and then the next one contains the modifications

Add this attribute to all openmrs-core dependencies <version>${openMRSBuildVersion}</version>

eg

 <dependency>
    <groupId>org.openmrs.api</groupId>
    <artifactId>openmrs-api</artifactId>
    <version>${openMRSBuildVersion}</version>
</dependency>
1 Like

Try for troubleshooting, What happens if you change this dependency to.

<dependency> 
  <groupId>org.openmrs.test</groupId>
  <artifactId>openmrs-test</artifactId>
  <version> 1.9.4 </version> 
  <type>pom</type>
<scope>test</scope> 

That is if your sure the original openmrs version was 1.9.4

@herbert24 , what I can trace in the error log is a failing test due to an error probably caused by the changes in the dependency to the new version of OpenMRS. You may want to trace the error causing this failure from the this path

F:\openmrs modules\modules\openmrs-module-metadatadeploy\api\target\surefire-reports

for the class and specific test_method from which the error comes from just to be sure what’s causing the problem.