Build Alfresco community edition

Posted on

Due to a bug in alfresco 3.3 I decided to build my own alfresco community edtion.

My first step was to download the latest tomcat 6 version and extract the tarball

cd /datadir/al/download/
mkdir alfresco
cd !$
mv <DOWNLOADED_.tar.gz> .
tar xfvz apache-tomcat-6.0.28.tar.gz

the second step was to read Developer Runtime Configuration.

Then get the  current subversion HEAD, change to the checkedout directory and set some env vars.

svn co svn:// alfresco_20100711
cd alfresco_20100711/root
export TOMCAT_HOME=/datadir/al/download/alfresco/apache-tomcat-6.0.28
export VIRTUAL_TOMCAT_HOME=/datadir/al/download/alfresco/apache-tomcat-6.0.28
export APP_TOMCAT_HOME=/datadir/al/download/alfresco/apache-tomcat-6.0.28/
export CATALINA_OPTS="-server -Xmx1024M -XX:PermSize=128m"
ant -verbose -l ../ant-20100713-2303.log

on my machine was the buildtime ~30 minutes.

Now you have a own alfresco.

Before you start the tomcat extract the original server.xml and web.xml from the tomcat tarball.

cd ../..
tar xfvz apache-tomcat-6.0.28.tar.gz  apache-tomcat-6.0.28/conf/server.xml apache-tomcat-6.0.28/conf/web.xml
cd apache-tomcat-6.0.28

after the successfull startup can you connect to the alfresco share.


If you have some suggestion or optimizations please drop me comment 😉


  1. create a empty alf_data. I have used the alf_data from a installed 3.3
  2. add to the alfresco.war. Current solution: cp /home/al/Alfresco/tomcat/shared/classes/ /datadir/al/download/alfresco/apache-tomcat-6.0.28/webapps/alfresco/WEB-INF/classes/

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s