Friday, October 21, 2011

Building Carbon Branch from Windows 7

Written by Madhuka


WSO2 is the lean enterprise middleware company, delivering the only complete open source enterprise SOA middleware stack more


Things to be needed

  1. tortoise
  2. Maven 2.2.1
  3. Sun Java Development Kit 1.6

Download them from link and install them in to windows

Are you need help to setup Maven?
Here it is
make sure you got maven 2.x.x


Install java, set java path

such as

JAVA_HOME to java jdk dir
and PATH TO java bin dir

Setup SVN in windows

If you do not have sub version control (svn) in your windows 7

Now go to the place where do need to make check out carbon. In My case I need it in ‘C:\WSO2\Carbon’. Go to the particular place and right click on the mouse go to ‘svn checkout’



then give the URL for Repo in wso2 carbon branch repo url is


Let increase java heap size to avoid such below errors


set MAVEN_OPTS=-Xmx2048m -Xms512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=1024m

You can set this environment variable

Then go to branch directory  and type

mvn clean install


Enjoy you meals and play some games in this time because it will take time. but look in to PC randomly to check is there any brakes in building.

some time you need   ‘3.2.2’ version to build rather than default one.

If so go to ‘C:\WSO2\Branches\patch-releases\’ (Where you get wso2 carbon branch) in this directory we can find the version you need, I need 3.2.2

so make, We need maven clean install so type

mvn clean install


Tips for building

if it say can’t delet a file then go to dir type this with file name

del filename.extension

if It stop on particular place start from there. (eg: start from abdera-il8n)

mvn clean install –Dmaven.test.skip=true -rf :abdera-i18n

Some time you do not need test, so skip by this

mvn clean install -Dmaven.test.skip=true

to build offline 

mvn clean install –o

See original post

No comments:

Post a Comment


Copyright 2009 All Rights Reserved Revolution Two Church theme modified by Milinda Pathirage