Configures a GeoServer war file with the following;
Check out the extensions' readme for more information.
mvn clean install -U
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
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