Skip to content

Building the Application

testinfected edited this page Nov 1, 2011 · 4 revisions

Full build

To run the complete build, which will clean up all generated files, build the entire project, run all unit tests, deploy to the local maven repository, and run the system tests, from the parent project run:

mvn clean install

Starting the web application

You can start the web application in development mode using the jetty container from the petstore-app module by running:

mvn jetty:run

Running the tests

To run the tests in the current module:

mvn test

In the petstore-infrastructure module, tests are integration tests that perform changes and queries to a the petstore_test test database, whatever the build profile used. All pending migrations are automatically applied (see Migrating the database).

In the petstore-system-tests, tests are system tests run against an embedded jetty server.

Running the system tests

System tests are run when performing a full build (see the Full build section).

To run the system tests without running the full build, you can run maven test goal in the petstore-system-tests module:

mvn test

The test database will be recreated and populated with system test data. The webserver will be started using the test server port, which is 8180 by default.

Clone this wiki locally