Building Gateway project from source

Overview

This document describes how to build a deployable EAR file from the gateway source code from the command line with Maven.

Assumptions

In this tutorial, we assume that you have already obtained the source for the modules you wish to build. If you haven't, please see Checking out the source code with Subversion or the download page. We also assume that you have the Java Development Kit and Maven installed.

Prerequisites

To compile the Java sources you will need Maven 2.0.7 or later.

To run the build script you will need bash .

Building

We have developed a shell script called gwbuild.bash . The script allows a user to build a specific module and all of its dependencies.

To build the EAR module use this command:

$ bash gwbuild.bash gateway_ear_jboss

To build the EAR module with the vermont and prod01 profiles enabled use this command:

$ bash gwbuild.bash gateway_ear_jboss vermont,prod01

To build the client application use this command:

$ bash gwbuild.bash gateway_client

To get a list of available build targets use this command:

$ bash gwbuild.bash