Configures a GeoServer war file with the following extensions installed
- The XSLT WFS Output Format extension installed
- The GeoWebCache s3 blob store extension installed
- The Control Flow Module extension installed
- SqlServer support used by IMAS installed
Builds the following AODN extensions and includes them:
- CSV with metadata header WFS output format
- Layer filter configuration plugin
- NCWMS abomination
Makes the following customisations to the geoserver war
- Return 500 errors instead of 200 for API errors so squid doesn't cache API errors
- Enable CORS for GET requests so IMAS can use it for GetFeatureInfo requests
Might be good to use transformation sets as per geonetwork-build to enable CORS instead of a full replacement of web.xml so that we get other updates made when upgrading.
This project is licensed under the terms of the GNU GPLv3 license.
mvn clean install -U
Copy the sample context.xml file to configure the default/additional jndi resources
cd src/main/src/jetty
cp context-sample.xml context.xml
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-war -Pjetty -Djetty.port=9090 -Duser.timezone=UTC
GeoServer will then be available at:
http://localhost:9090