[Download] | [Documentation Home] | [Release Note]
This page of the installation guide explains how to build the WSO2 Gadget Server using the source distribution of the release.
Download the Gadget Server source distribution from Download
| Java Runtime Environment | version 1.6.0_24 or higher (For instructions on setting up the JRE in different operating systems, visit http://java.sun.com) |
| Maven | 2.1.0 or higher download). Please download maven 2.x version. |
| Operating System | Tested on Windows XP, Linux(Fedora core, Ubuntu and Gentoo), Mac OS X & Sun Solaris |
The WSO2 Gadget Server build is based on Maven. Hence, a prerequisite to build WSO2 Gadget Server from the source distribution is to have Maven (version 2.1.0 or later) and JDK (version 1.6.0_24 or later) installed. Extensive instructions are available on the Maven site.
You may need to set the MAVEN_OPTS if you come across OutOfMemory errors during the build. e.g. you may need to set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=128m
This guide however contains the easiest path for quick environment setting. Advanced users can learn more about Maven.
| mvn clean install | To create the complete release artifacts including the binary and source distributions. |
| mvn clean install -Dtest=false -DfailIfNoTests=false | To create the complete release artifacts including the binary and source distributions, without running any of the unit tests. |
| mvn clean install -Dtest=false -DfailIfNoTests=false -o | To create the complete release artifacts including the binary and source distributions, without running any of the unit tests, in offline mode. |
| mvn clean install site | Will also generate the project site and all the reports of the analysis tools integrated with Gadget Server such as Findbugs, Checkstyle etc. The index file will be generated in the target/site directory. |