Getting Started with building the code

Introduction

This guide is all about building OSCAR from source to produce a WAR you can then deploy on a Manually installed system


Prerequisites

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

  1. Linux shell
  2. GIT
  3. 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.

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

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"




Pick a Branch / Commit

git checkout RELEASE_15_BETA


Build OSCAR

mvn -Dcheckstyle.skip=true -Dmaven.test.skip=true package