-
Notifications
You must be signed in to change notification settings - Fork 9
Building & Running
Peter Powers edited this page Sep 20, 2017
·
13 revisions
- Java 8 JDK: Oracle or OpenJDK
- Projects needed in adjacent directories:
- Dependencies (managed by Gradle):
- Java servlet support (e.g. Apache Tomcat 8)
- Guava
- Gson
Running nshmp-haz-ws services locally requires installation of a Java Servlet 3.1 container (e.g. Apache Tomcat 8). Once configured, executing:
cd /path/to/nshmp-haz-ws
./gradlew war
... creates a deployable WAR file in nshmp-haz-ws/build/libs
.
Please see build.gradle
for additional details on configuring paths to model directories.
- Set the Java 8 JDK installation as the default:
Preferences > Java > Installed JREs
- Set up a Tomcat server:
Preferences > Server > Runtime Environments > Add...
- Import nshmp-haz:
File > Import > Gradle > Existing Gradle Project
- Import nshmp-haz-ws, also as a Gradle project.
Window > Perspective > Open Perspective > Java Browsing
- Select nshmp-haz-ws in the
Package Explorer
tab. Run > Run As > Run on Server
U.S. Geological Survey – National Seismic Hazard Mapping Project (NSHMP)