herbert24
(Herbert Yiga)
January 7, 2019, 2:20pm
1
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
samuel34
(Samuel Male)
January 7, 2019, 2:33pm
2
Can you also share the git link of the POM file your modifying?
herbert24
(Herbert Yiga)
January 7, 2019, 2:42pm
3
its the first one i included above and then the next one contains the modifications
samuel34
(Samuel Male)
January 7, 2019, 2:56pm
4
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
samuel34
(Samuel Male)
January 7, 2019, 4:13pm
5
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
ruhanga
(Nathan Ruhanga)
January 8, 2019, 11:38am
6
@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.