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.

Pre-requirements.

  • 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 http://wso2.org/repos/wso2/branches/carbon-platform/2.0/axis2

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 http://wso2.org/repos/wso2/branches/carbon-platform/2.0/transports

Step 03
Check out Apache WSS4J and build
> svn co http://wso2.org/repos/wso2/branches/carbon-platform/2.0/axis2

Step 03
Check out Equinox P2 and build
> svn co http://wso2.org/repos/wso2/branches/carbon-platform/2.0/p2


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.

Step05
Check out and build Carbon-orbit
> svn co http://wso2.org/repos/wso2/trunk/carbon-orbit

Stepo6
Check out and build Carbon
> svn co http://wso2.org/repos/wso2/trunk/carbon

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.

2 comments:

kirkmster said...

Thanks. worked will minor issues. How about data services or other wso2 carbon based components?

Unknown said...

Your blog is very nice... i like your blog ....