This page of the installation guide will explain how to build WSO2 Tungsten using the source distribution provided with this release.
Tungsten comes as a standalone server and as embeddable server or in other words as part of a J2EE servlet container. In other pages of the installation guide we have given instructions on the installation of the standalone version and Web application archive (WAR) installation for the embeddable version.
For the more adventurous users this release provides Tungsten source distribution so that can build the WSO2 Tungsten server suing this.
Download WSO2 Tungsten Source Distribution: tungsten-java-src-1.0.zip
| Java Runtime Environment | 1.4 or 1.5 (For instructions on setting up the JRE in different operating systems, visit http://java.sun.com) |
| Maven (This requirement is unique for building Tungsten from source distribution) | 1.0.2 or higher in Maven 1.x series (download). Please download maven 1.x version. Tungsten is not compatible with maven2 yet. |
| Memory | No minimum requirement |
| Disk | No minimum requirement. |
| Operating System | Tested on Windows XP, Linux(Fedora core, Ubuntu and Gentoo), Mac OS X, |
The WSO2 Tungsten build is based on Maven. Hence the only prerequisite to build Tungsten from source distribution is to have Maven installed. Extensive instruction guides are available at the Maven site.
This guide however contains the easiest path for quick environment setting. Advanced users who wish to know more about Maven can visit here.
The tar ball or the zip archive is the best option. Once the archive is downloaded expand it to a directory of choice and set the environment variable MAVEN_HOME and add MAVEN_HOME/bin to the path as well. More instructions for installing Maven in Unix based operating systems can be found here.
Once maven is properly installed you can start building WSO2 Tungsten.
The source distribution is available as a zipped archive. All the necessary build scripts are included with the source distribution. Once the source archive is expanded into a directory of choice, move to the expanded directory.
List of commands that can be run are as follows:
Note: The first time you run maven it will automatically download the dependent jars. Therefore, fisrt run will take more time.
| maven release | To create the complete release artifacts including standalone binary, embeddable binary and source distributions |
| maven dist | To create complete standalone binary and embeddable binary |
| maven dist-min | Creating the minimum distribution (minimum jars needed for Tungsten to run) |
| maven jar | Compiling and building the jars |
| maven war | To create the webapp zip |