This repository houses the National Water Census data portal.
- Install Java 8, Tomcat 7.
- Open the context.xml for the instance you are going to run this app in (Either $CATALINA_HOME/conf/context.xml or $CATALINA_BASE/conf/context.xml)
- Make your context.xml look like the following, substituting different values as necessary:
<?xml version="1.0" encoding="utf-8"?>
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- disable session persistence across Tomcat restarts -->
<Manager pathname="" />
<Environment name="nwc.development" value="true" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.geoserver" value="http://path_to_nwc_geoserver" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.thredds" value="http://path_to_watersmart_thredds_server" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.wps" value="http://path_to_watersmart_wps_process_service" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.nwis" value="http://waterservices.usgs.gov/nwis/site/" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.nwis.streamflow" value="http://waterservices.usgs.gov/nwis/dv/" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.searchService" value="http://txpub.usgs.gov/DSS/search_api/1.1/dataService/dataService.ashx/search" type="java.lang.String" override="true"/>
<Environment name="nwc.endpoint.sciencebase" override="true" type="java.lang.String" value="https://www.sciencebase.gov"/>
</Context>
- Fork this repo
- Clone your forked repo
- change to the directory where you cloned your fork
- Run
mvn clean package
. This will place a 'war' file in the 'target' directory - Deploy the 'war' file to tomcat