Building WSO2 Carbon trunk from source

Monday, June 22, 2009

Building WSO2 Carbon from source is a simple task. If you follow the steps correctly you will get it. In the recent past some people have faced problems when building Carbon. Here in this post, I will give you steps to properly build Carbon from source.


  • Jdk 1.5 or higher,
  • Apache Maven 2.1.0 or higher
  • Apache Ant 1.7.1 or higher.
Carbon uses the custom branches of Apache Axis2, h2, Axis2-transports and Apache wss4j, Apache xmlsec, Equinox P2, First of all you need to build these custom branches. Please use the following maven command to build all branches. Note that you don't need to build all these branches.

> mvn clean install -Dmaven.test.skip=ture

Step 01
Check out Apache Axis2 branch and build
> svn co

Before building Axis2 you need to build axis2-aar-maven-plugin and axis2-mar-maven-plugin in the modules/tools folder.

Step o2
Check out Apache Axis2 Transports and build
> svn co

Step 03
Check out Apache WSS4J and build
> svn co

Step 03
Check out Equinox P2 and build
> svn co

WSO2 Carbon uses OSGi as its underlying modularization technology. Therefore Carbon uses a collection third party bundles. Most of these third party bundle are wrapped by WSO2, since they are not yet available as bundles. Carbon-orbit project contains all these third party bundles.

Check out and build Carbon-orbit
> svn co

Check out and build Carbon
> svn co

If you follow above steps correctly, you should be able to build Carbon without much problems. Please let us know if you find any issues.