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:

  1. Obtain the supported JBoss Data Grid Library Mode distribution files.
  2. 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
  3. 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)

  1. 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
  2. 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.

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.