Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Building A WAR File

Randgalt edited this page Mar 25, 2013 · 5 revisions

This wiki documents how to build the WAR file version of Exhibitor. If you’d prefer to use Exhibitor as a standalone application see this wiki: Building Exhibitor. If you need to integrate Exhibitor into an existing application, please see the separate wiki on Integrating Exhibitor.

The Exhibitor WAR file is built using Apache Maven (Gradle is currently missing needed “overlay” support). Here are the steps for creating the Exhibitor WAR file:

  1. Download the project from here: WAR project
  2. Edit the exhibitor.properties file (see below for details) found at src/main/resources/exhibitor.properties
  3. Create the WAR via this Maven command: mvn clean compile war:war – the WAR file can then be found in the target directory.

exhibitor.properties

You must set the exhibitor properties file as needed. The properties correspond one-to-one to the command line values described in the standalone version (see Running Exhibitor). The only difference is the naming. Each property is prefixed with “exhibitor-”. So, if the Running Exhibitor page says an option is “—configtype” then the exhibitor.properties name is “exibitor-configtype”.

Here is an example simple exhibitor.properties file:

exhibitor-configtype=file
exhibitor-port=8888

Building Example

mkdir ~/temp
cd ~/temp
git clone git://github.com/Netflix/exhibitor.git
cd exhibitor/exhibitor-standalone/src/main/resources/buildscripts/war/maven
vi src/main/resources/exhibitor.properties
-- uncommented the two prop lines and then save the file
mvn clean compile war:war
cp exhibitor/exhibitor-standalone/src/main/resources/buildscripts/war/maven/target/exhibitor-war-1.0.war $TOMCAT/webapps/ROOT.war
$TOMCAT/bin/startup.sh start