# Building Server-Side Components

## Requirements

Building mod_cluster's server-side components from source requires the following tools:

- JDK 5.0+

- Maven 2.0+

## Building

Steps to build:

1. Download the mod_cluster sources

       git clone git://github.com/modcluster/mod_cluster.git

2. Use maven "dist" profile to build:

       cd mod_cluster
       mvn -P dist package

Some unit tests require UDP port 23365. Make sure your local firewall allows the port.

## Build Artifacts

The build produces the following output in the target directory:

mod-cluster.sar

- Exploded format sar to copy to the deploy dir in your JBoss AS install

JBossWeb-Tomcat/lib directory

- Jar files to copy to the lib directory in your JBossWeb or Tomcat install to support use of mod_cluster

demo directory

- The load balancing demo application

mod-cluster-XXX.tar.gz

- The full distribution tarball; includes the above elements