inoah
(Imoh Noah)
January 2, 2019, 3:46am
1
I am following the developer guide to install OpenMRS sdk.
I successfully ran the setup-sdk command with no errors -
mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
However, when I run the command - mvn openmrs-sdk:help
I receive an error - https://pastebin.com/D9JTHph4
I looked at older threads with this similar error and tried the steps they used to resolve it, like mvn clean install or setup-sdk but no luck.
Please help.
suthagar23
(Suthagar Kailayapathy)
January 2, 2019, 3:55am
2
Can you confirm that, the OpenMRS SDK installed successfully? Better reinstall and restart system
irenyak1
(Irene Nyakate)
January 2, 2019, 3:56am
3
sorry about that @inoah , please post the full log
inoah
(Imoh Noah)
January 2, 2019, 4:02am
4
I am not able to confirm that openmrs sdk was installed successfully.
I tried reinstall and restart, no luck.
inoah
(Imoh Noah)
January 2, 2019, 4:03am
5
I am running this on cmd. Here is the full log -
https://pastebin.com/n6k6fQv9
irenyak1
(Irene Nyakate)
January 2, 2019, 4:16am
6
@inoah the fact that it causes and error when you run mvn openmrs-sdk:help , then it may not have installed properly. can try deleting all the old sdk files and restart your machine and install again with this command mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
inoah
(Imoh Noah)
January 2, 2019, 5:20am
7
I tried deleting all sdk files from my maven repo and restarted. But still getting same error.
Am I not deleting all sdk files correctly?
samuel34
(Samuel Male)
January 2, 2019, 6:48am
8
According to your error log, it tells that you don’t have the sdk plugin in your local maven repo yet it’s expected to be cached. But this time round before running the setup of the sdk, make sure you delete this directory. .m2\repository\org\openmrs
and then rerun mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk
and tell us what happens.
1 Like
inoah
(Imoh Noah)
January 2, 2019, 4:00pm
9
Yes, I tried deleting all plugin files - https://pasteboard.co/HUBddXs.png
Restarted my machine and ran the setup command.
Still, receive the same error - https://pastebin.com/Nbug99QZ
I appreciate everyone trying to help me resolve this. Thank you.
dkayiwa
(Daniel Kayiwa)
January 2, 2019, 8:25pm
10
What does this command return? mvn -v
inoah
(Imoh Noah)
January 2, 2019, 10:01pm
11
D:\>mvn -v
D:\
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in
8.0
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T14:41:47-04:00)
Maven home: D:\Java\apache-maven-3.6.0\bin\..
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_181\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
dkayiwa
(Daniel Kayiwa)
January 3, 2019, 8:13am
12
Can you try delete the entire .m2 folder and then compile again?
inoah
(Imoh Noah)
January 3, 2019, 3:55pm
13
Tried that as well but still receive the same issue.
Could it be that the jar file for openmrs-sdk is missing from the repo
Screenshot of missing jar in local repo - https://pasteboard.co/HUKJLou.png
dkayiwa
(Daniel Kayiwa)
January 3, 2019, 4:17pm
14
What is your current error log?
inoah
(Imoh Noah)
January 3, 2019, 4:40pm
15
Still getting the same error - No plugin found for prefix ‘openmrs-sdk’
dkayiwa
(Daniel Kayiwa)
January 3, 2019, 4:57pm
16
Can you share the current log?
inoah
(Imoh Noah)
January 3, 2019, 5:30pm
17
Here is the full log
output.txt (751.8 KB)
Could not copy the log to pastebin (too large). hopefully I’m allowed to upload as txt file.
dkayiwa
(Daniel Kayiwa)
January 3, 2019, 6:59pm
18
Can you upgrade your maven to at least version 3.3.9?
inoah
(Imoh Noah)
January 3, 2019, 10:13pm
19
I currently have maven version 3.6.0. Do I need to downgrade to version 3.3.9 to get this plugin?
dkayiwa
(Daniel Kayiwa)
January 4, 2019, 5:04am
20
Yes. Try downgrading to that version.