此内容没有您所选择的语言版本。
12.6. The CarMart Quickstart to a 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
$TOMCAT7_HOME/bin/catalina.sh run
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows users:$TOMCAT7_HOME\bin\catalina.bat run
$TOMCAT7_HOME\bin\catalina.bat run
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Build and Deploy your Application
Use the following command to build and deploy your application using Maven:mvn -Plibrary-tomcat clean package tomcat:deploy
$ mvn -Plibrary-tomcat clean package tomcat:deploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Result
The target war file (target/
jboss-as-carmart.war
) is deployed to the running instance of the selected server.