Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (62 sloc) 2.385 kB


Home of CalCentral. Build status for calcentral

To run the server, you will first need PostgreSQL running on your machine.

There's a good setup guide for OSX at and guides for other OSes at On my Mac, I found it easiest to use the "brew install postgresql" method from the first page. If you don't have brew, get it here:

Install postgres:

brew update
brew install postgresql
initdb /usr/local/var/postgres

Start postgres and create a blank db:

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
psql postgres
create database calcentral;
create user calcentral with password 'secret';
grant all privileges on database calcentral to calcentral;
create database calcentraltest;
create user calcentraltest with password 'secret';
grant all privileges on database calcentraltest to calcentraltest;

Mac OS X Lion users: If you're encountering issues connecting to the postgres server:

Stopping postgres:

pg_ctl -D /usr/local/var/postgres stop -s -m fast

Initializing the database (destroys existing data):

mvn flyway:clean

More information can be found here:

To start the CalCentral server:

mvn clean package jetty:run

Access the server at http://localhost:8080/

To stop the server:


To start the server a little quicker, when you know Java code and XML configs have not changed:

mvn jetty:run

You can take all the default properties, or override some (or all) of them by creating your own *.properties files. There are other optional config settings that can be passed on the mvn command line. A partial reference:

mvn jetty:run

To run the server with unit tests, integration tests, and test coverage reports:

mvn clean install cobertura:cobertura jetty:run

You can read coverage reports from target/site/cobertura/index.html.

To run the server with integration tests (requires postgres already running):

mvn clean verify
Jump to Line
Something went wrong with that request. Please try again.