πŸ“

Common Development Tasks

Rebuild, restart, view logs, run tests, and other day-to-day commands.

All commands below are run inside the container (with # prompt):

Rebuild after code changes:

# cd /workspace/geoserver/src
# mvn install -T 2C

Or rebuild specific module (faster):
# mvn install -T 2C -pl web/app -am

Restart GeoServer:

# restart-geoserver.sh

View GeoServer logs:

On host:
$ docker logs -f devdocker

Or inside container:
# tail -f /usr/local/tomcat/logs/catalina.out

Run tests:

# cd /workspace/geoserver/src

Run all tests (slow - 30+ minutes):
# mvn test

Run tests for specific module:
# mvn test -pl main

Run specific test class:
# mvn test -pl main -Dtest=GeoServerApplicationTest

Update your fork:

# cd /workspace/geoserver
# git checkout main
# git pull upstream main
# git push origin main

Work with specific GeoServer version:

List available versions:
# git tag -l | grep "^2\." | sort -V | tail -20

Checkout specific version:
# git checkout 2.28.2

Or create branch from version:
# git checkout -b my-feature-2.28.2 2.28.2