Skip to content

Instantly share code, notes, and snippets.

@thnk2wn
Created May 28, 2019 06:36
Show Gist options
  • Save thnk2wn/ad1e1dbfa5c4c96d6ca59a72a00e45c9 to your computer and use it in GitHub Desktop.
Save thnk2wn/ad1e1dbfa5c4c96d6ca59a72a00e45c9 to your computer and use it in GitHub Desktop.
$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 https://github.com/spring-cloud-samples/eureka.git $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
Pop-Location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment