fxmzb123 / geoserver-build

Configures a GeoServer war containing extensions and configuration required by AODN instances
Other
0 stars 0 forks source link

Geoserver Build

Configures a GeoServer war file with the following;

Check out the extensions' readme for more information.

To build

mvn clean install -U 

To setup to run

Create an empty postgres schema that geoserver can connect to as follows:

Parameter Value
host localhost
port 5432
database geoserver
schema geoserver
user geoserver
password geoserver

the schema will be populated with default test data using liquibase

Copy the sample context.xml file to configure the default/additional jndi resources

cd src/main/src/jetty
cp context-sample.xml context.xml

Running using Jetty

Maven project is in src/main

cd ../src/main

GeoServer requires extra memory above the normal maven defaults, so you will need to bump up the memory when running this command. For example, run export MAVEN_OPTS='-Xms100m -Xmx512m -XX:MaxPermSize=192m' prior to running this command or add this command to you startup scripts

Then to run jetty on port 9090 you can use:

mvn jetty:run -Djetty.port=9090

GeoServer will then be available at:

http://localhost:9090