Build from sources
Building from sources
Overview
The community distribution of eXo Platform is built very frequently by the open source project members. The corresponding binaries are uploaded to the OW2 forge. Although the high frequency allows to get quick bug fixes, it might be needed sometimes to build eXo Platform from the sources. This page gives detailed instructions. eXo Platform is built using Maven. After you have built, you should go to the Developers page, where you find hints for the use with Ecplise and Intellij.Pre-requisites
- Download, install and add in your path JDK (Java Development Kit) 5.0 for AllInOne 1.6.x products.
- Download, install and add in your path JDK (Java Development Kit) 6.0 for GateIn based products.
- Download, install, add in your path Maven 2.2.1
- Download application servers you'll want to use and extract them into a directory (let's call it $APPLICATIONS_DIRECTORY). Here is a table of latest supported versions of applications servers :
| Application server | Download site | Version number |
|---|---|---|
| Apache Tomcat | http://tomcat.apache.org | 6.0+ |
| JBoss AS | http://www.jboss.org | 4.2.0+ |
| OW2 JOnAS | http://jonas.objectweb.org | 4.8.4+ |
Check out the source code
eXo source code is hosted in a Subversion repository at http://svn.exoplatform.org/projects. Before you proceed, you need to install a command line subversion client. Checkout the source code into a new directory :Configure
Add a system environment variable MAVEN_OPTS (it could be in a .profile startup script on Linux/MacOS operating systems or in global environment variables panel on Windows).- Windows :
- Linux/MacOS :
Note : If you have an existing file settings.xml you can merge them all together. You'll need at least
- the local-properties profile to define properties used to build application servers distributions of our products
- the repository http://repository.exoplatform.org/public to download our dependencies
Build and assemble product
To build any product, in the root directory where you checked-out the code just launch :
This command can be launched from any subdirectory.
Maven we'll take a long long time to download required dependencies the first time. After that he'll just check one time per day if new SNAPSHOTs were built by our integration server (http://builder.exoplatform.org)
AllInOne 1.6.x products
To build a tomcat or jboss distribution, just add -Ppkg in the command line. The product we'll be in the project directories tree under packaging/pkg (ks, cs, ecm/wcm ...)
GateIn based products
To build a tomcat or jboss distribution, just add -Ptomcat-pkg or -Pjboss-pkg in the command line. The product we'll be in the project directories tree under packaging/pkg (ks, cs, ecm/wcm ...)