Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WSO2 products, such as The source code of WSO2 Application Server are shipped as binary packs, which contains a wide variety of features to support your enterprise requirements. You can easily download the binary distribution, and get started with the product immediately. However, as developers, you can download the source code and build the product as shown below.

The following topics describe this process:

Table of Contents
maxLevel3

...

The source code of all as well as all other WSO2 products are maintained in GitHub as a list of repositories. Each of the WSO2 products are built using  If you are a developer, you can clone the source code stored in several of from these repositories. Given below is the Git repository for AS 5.3.0 release, which you can use to build a fresh product pack.

Follow the steps given below to download each of the above repositories for AS 5.3.0.

...

Clone the above mentioned Git repository to a folder of your choice. The location of the extracted source is referred to as <AS_SOURCE_HOME>
git clone https://github.com/wso2/product-as <AS_SOURCE_HOME>

...

Navigate to the <AS_SOURCE_HOME> directory using the following command:
cd <AS_SOURCE_HOME>

...

Ensure that the following prerequisites are in place before you build:

  1. Make sure the build server has an active Internet connection to download dependencies while building.
  2. Install Maven and JDK. See Installation Prerequisites for compatible versions. 
  3. Set the environment variable  MAVEN_OPTS=”-Xms1024m -Xmx4096m -XX:MaxPermSize=1024m” to avoid the Maven OutOfMemoryError.

Use the following maven commands to build your product:

CommandDescription
mvn clean install

The binary and source distributions.

mvn clean install -Dmaven.test.skip=true The binary and source distributions, without running any of the unit tests.
mvn clean install -Dmaven.test.skip=true -o
The binary and source distributions, without running any of the unit tests, in offline mode. This can be done only if you have already built the source at least once.

Contributing to the WSO2 source code

You can contribute to WSO2 products by committing your changes to GitHub. Whether you are a committer or a non-committer, you can contribute with your code as explained in the Get Involved sectionGit repositories, and if required, you can do modifications and build a customized product on your own. WSO2 invites interested parties to contribute their changes and suggestions to WSO2. 

See the documentation on working with the source code for more information.