Commit 04312864 authored by Chris Coughlin's avatar Chris Coughlin

Added third party deps install script

parent d8cd93c3
# installdeps - installs Myriad dependencies that aren't distributed as Maven projects i.e. runs
# mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=jar
mvnInstall() {
mvn install:install-file -Dfile=$1 -DgroupId=$2 -DartifactId=$3 -Dversion=1.0.0 -Dpackaging=jar
# Check if JAVA_HOME is set for maven
if [ -n "$JAVA_HOME" ];
# Check for maven
command -v mvn >/dev/null 2>&1 || { echo >&2 "mvn not found; please add to PATH"; exit 1; }
# Run mvn install for each dep
mvnInstall aparapi.jar com.amd aparapi
mvnInstall pixelmed.jar com.pixelmed dicomtoolkit
mvnInstall sgdtk-0.1.1.jar com.github sgdtk
echo "Maven requires the enviroment variable JAVA_HOME to be set"
echo "e.g. export JAVA_HOME=/home/username/jdk"
exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment