-
Notifications
You must be signed in to change notification settings - Fork 443
Building A WAR File
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:
- Download the project from here: WAR project
- Edit the
exhibitor.properties
file (see below for details) found atsrc/main/resources/exhibitor.properties
- Create the WAR via this Maven command:
mvn clean compile war:war
– the WAR file can then be found in thetarget
directory.
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
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
Contents
- Top
- Standalone Version
- WAR File
- Core/Library
- Features
- Shared Configuration
- Using Exhibitor
- REST API
- Contributions