12.6. The CarMart Quickstart to a Server
12.6.1. Build and Deploy the CarMart Quickstart to the Server
The following procedure provides directions to build and deploy the CarMart quickstart to the server.
Prerequisites
Prerequisites for this procedure are as follows:
- Obtain the supported JBoss Data Grid Library Mode distribution files.
- Ensure that the JBoss Data Grid and JBoss Enterprise Application Platform Maven repositories are installed and configured. For details, refer to Chapter 4, Install and Use the Maven Repositories
- Select either JBoss Enterprise Web Server 2 (or better) or Tomcat 7 (or better) for your application and install it.
Procedure 12.4. Build the CarMart Quickstart to the Server (Library Mode)
Start the Server
Run the selected server by navigating to the root directory in a terminal window and enter the following command:For Linux users:$TOMCAT7_HOME/bin/catalina.sh run
For Windows users:$TOMCAT7_HOME\bin\catalina.bat run
Build and Deploy your Application
Use the following command to build and deploy your application using Maven:$ mvn -Plibrary-tomcat clean package tomcat:deploy
Result
The target war file (target/
jboss-as-carmart.war
) is deployed to the running instance of the selected server.