failing to install openmrs-sdk

openmrs-sdk
Tags: #<Tag:0x00007f88c9f684f8>

(George Junior Kamugasha) #1

Why is it that i am failing to install openmrs sdk on windows 10 yet i followed the steps closely? https://wiki.openmrs.org/display/docs/OpenMRS+sdk

System%20Properties%2009-Jan-19%204_34_34%20PM System%20Properties%2009-Jan-19%204_34_46%20PM @samuel34


(George Junior Kamugasha) #2

System%20Properties%2009-Jan-19%204_34_46%20PM


(Samuel Male) #3

Can you delete your .m2/repository directory and try again?


(George Junior Kamugasha) #4

man there is no improvement


(Daniel Kayiwa) #5

Which version of Java are you using? Or what does this command return? mvn -v


(George Junior Kamugasha) #6

C:\Users\Admin>java -version java version “1.8.0_171” Java™ SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot™ 64-Bit Server VM (build 25.171-b11, mixed mode)

C:\Users\Admin>mvn -v Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T21:41:47+03:00) Maven home: C:\Program Files\apache-maven-3.6.0-bin\apache-maven-3.6.0\bin… Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_171\jre Default locale: en_US, platform encoding: Cp1252 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”


(George Junior Kamugasha) #7

but when i run this “mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk”, it brings an error. what could be the possible cause?


(Ivange Larry Ndumbe) #8

Is the error the one you shared above or a different one. If it’s a different one do you mind sharing it?

Also your screenshot doesn’t share the whole console output. Try sharing the whole console output. You can copy it and paste it on https://pastebin.com. Another thing is that your your screenshot doesn’t show us what you are doing. Saying you are following the instructions is not enough. We need to see that you are actually following the instructions.


(George Junior Kamugasha) #9


(George Junior Kamugasha) #10

System%20Properties%2009-Jan-19%204_34_46%20PM System%20Properties%2009-Jan-19%204_34_46%20PM those are the screenshots of what i have been doing. i also posted it on https://pastebin.com/yVwXsWhy


(Samuel Male) #12

Can you paste the error log from your terminal/cmd to pastebin.com not what you pasted instead?


(Daniel Kayiwa) #13

You could also try downgrading your maven to something like version 3.3.9 and then see what happens.


(George Junior Kamugasha) #14

https://pastebin.com/tKQw0DRd


(George Junior Kamugasha) #15

i have tried to use version 3.3.9 but it is still failing to run


(Daniel Kayiwa) #16

Share the full log at pastebin.com


(George Junior Kamugasha) #17

https://pastebin.com/fXXLW6eu


(Daniel Kayiwa) #18

Delete this folder and then try again: C:/Users/Admin/.m2


(George Junior Kamugasha) #19

it has finally worked thank you :smiley:


(Daniel Kayiwa) #20

For the sake of those who may land on this thread when facing the same problem, what did you do to make it work?


(George Junior Kamugasha) #21

I deleted this folder “C:/Users/Admin/.m2” and then ran this command again “mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk”