SDK Installation failure

See error message here >>> Click here

@brightoibe can you check SDK version you’re using

drop this at your terminal “mvn openmrs-sdk:help” to show version and mvn openmrs-sdk:run -X so we can see the full error log.

Can you also check your internet connection ,just to make sure maven pulls the dependencies using secure uninterrupted connection.

Hello @brightoibe please respond so that we may help you. Or have you succeeded in installing the SDK?

Thank you @irenyak1 @tendomart for the swift response. I appreciate.

We were able to solve the challenge. Apparently i installed maven version 3.0.5 on Ubuntu 14.04 via terminal and after running the SDK i discover that the build keeps failing. I later checked the Java version maven was pointing to and it was 'Java 6, then i installed Java 8.

Yet still it was throwing “BUILD FAILURE” i checked again and found out that it was still pointing to Java 6 after installing Java 8. Then i ran the below steps to set the default Java version to Java 8.

…

Firstly I opened Ubuntu Software center and searched for jdk removed the installer and default jdk 6 from there. Then I run the command :

sudo update-alternatives --config java

sudo update-alternatives --config javac

And selected the openjdk-8 from there. But when I run :

mvn --v

it said that JAVA_HOME is not set. Then did the following steps:

sudo gedit /etc/bash.bashrc

Added the following lines at the end of the file :

export JAVA_HOME=/usr/lib/jvm/java-8-oracle

export PATH=$PATH:$JAVA_HOME/bin

Then close the gedit. And run the command :

source /etc/bash.bashrc

echo $JAVA_HOME

Path was set. And now :

mvn -v

Apache Maven 3.0.5

Maven home: /usr/share/maven

Java version: 1.8.0_76, vendor: Oracle Corporation

Java home: /usr/lib/jvm/java-8-oracle/jre

Default locale: en_IN, platform encoding: UTF-8

OS name: “linux”, version: “3.16.0-30-generic”, arch: “amd64”, family: "unix"

…

Regards

Gibril Gomez

1 Like

Thank you @ggomez for sharing out how you solved your blocker this I believe will be of much help to others who may be facing the same challenge. Thanks :slight_smile:

Thank you @irenyak1 I appreciate.

I hope this helps others as well.