Skip to content

Building the Application

testinfected edited this page Sep 1, 2012 · 4 revisions

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 the 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 application server.

Running the system tests

System tests are run as part of the build.

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

mvn test

Clone this wiki locally