Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$eurekaLocalPath = "C:\Projects\eureka"
# JAVA_HOME must be set for maven build
# needs to be set to a JDK dir not JRE otherwise:
# No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
$env:JAVA_HOME = "C:\Program Files\Java\jdk1.8.0_191"
if (!(Test-Path $eurekaLocalPath)) {
"Cloning Eureka"
git clone $eurekaLocalPath
Push-Location $eurekaLocalPath
"Pulling Eureka from Github"
git pull -p
"Running Eureka"
# This will take some time on the initial run
.\mvnw spring-boot:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment