ariofrio/oration

View on GitHub
templates/azure/java/WorkerRole/installJavaDependencies.cmd

Summary

Maintainability
Test Coverage
set PATH=%PATH%;%PYTHON_PATH%;%JAVA_HOME%\bin

REM Download and install Maven 3.0.4.
if not exist maven.zip powershell -c "(new-object System.Net.WebClient).DownloadFile('http://www.us.apache.org/dist/maven/binaries/apache-maven-3.0.4-bin.zip', 'maven.zip')"
jar xf maven.zip
set M2_HOME=%CD%\apache-maven-3.0.4
set M2=%M2_HOME%\bin
set PATH=%PATH%;%M2%

REM Install dependencies (using a Maven local repository under current directory)
set MAVEN_OPTS=-Duser.home=%~dp0
cd backgroundworker
mvn package