Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You'll need more skills than theĀ DEB installation. Make sure you're well versed with

  1. Linux shell
  2. GIT

...

  1. Java installed and JAVA_HOME pointing to it

Getting the source code

The first thing we'll need is the source code. All of OSCAR EMR's open source code is hosted in a git repository. This repository is currently available through SourceForge.

Code Block
languagebash
sudo apt-get install git #if you don't have git installed, run this


git clone https://git.code.sf.net/p/oscarmcmaster/oscar


Install Maven

Maven is the build tool used to compile and package the OSCAR web application.

Download the binary distribution (.tar.gz) from here

Code Block
languagebash
sudo tar xzvf apache-maven-3.3.9-bin.tar.gz -C /opt
sudo ln -s /opt/apache-maven-3.3.9 /opt/maven
echo "export MAVEN_HOME=/opt/maven" >> ~/.profile
echo "export PATH=\$PATH:\$MAVEN_HOME/bin" >> ~/.profile
. ~/.profile


mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /usr/dev/maven
Java version: 1.8.0_111, vendor: Oracle Corporation
Java home: /usr/dev/jdk1.8.0_111/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-57-generic", arch: "amd64", family: "unix"




Build OSCAR

Code Block
languagebash
mvn -Dcheckstyle.skip=true -Dmaven.test.skip=true package