Building iDempiere without Eclipse
From iDempiere en
⇐ Table of Contents | Creating Installers from Eclipse | Building iDempiere without Eclipse
It is possible to build iDempiere without Eclipse.
This is possible thanks to the Buckminster headless functionality.
Instructions:
Following instructions from http://www.eclipse.org/buckminster/downloads.html
- Download director_latest.zip from this link
- Unzip it into $DIRECTOR_HOME folder (you decide which folder)
cd $DIRECTOR_HOME # replace DIRECTOR_HOME with your preferred folder for this unzip director_latest.zip
- Using director download buckminster headless into $BUCKMINSTER_HOME folder (you decide which folder)
director -r http://download.eclipse.org/tools/buckminster/headless-4.4/ -d $BUCKMINSTER_HOME -p Buckminster -i org.eclipse.buckminster.cmdline.product # Note: replace $BUCKMINSTER_HOME with your preferred folder for this
- Install the prerequisites (Core, PDE, Maven) into buckminster
cd $BUCKMINSTER_HOME buckminster install http://download.eclipse.org/tools/buckminster/headless-4.4/ org.eclipse.buckminster.core.headless.feature buckminster install http://download.eclipse.org/tools/buckminster/headless-4.4/ org.eclipse.buckminster.pde.headless.feature buckminster install http://download.eclipse.org/tools/buckminster/headless-4.4/ org.eclipse.buckminster.maven.headless.feature
- Clone the repository you downloaded on Download the Code step (you can also use your actual installation, but I prefer to clone it to avoid mixing environments)
cd $HOME/sources # Or use the folder where you downloaded the idempiere project hg clone idempiere testheadless
- Create the target platform (replace below $HOME/sources with the folder where you have your cloned repositories)
cd $BUCKMINSTER_HOME buckminster -data $HOME/sources/testheadless importtargetdefinition -A "$HOME/sources/testheadless/org.adempiere.sdk-feature/build-target-platform.target"
- Materialize the project
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless import -P $HOME/sources/testheadless/org.adempiere.sdk-feature/materialize.properties "$HOME/sources/testheadless/org.adempiere.sdk-feature/adempiere.cquery"
- Download zk libraries (this is not always required, but sometimes the download of zk libraries fail and it can be run by hand with these commands):
cd $HOME/sources/testheadless/org.zkoss.zk.library ant -f copyjars.xml ant -f copysources.xml
- Build
cd $BUCKMINSTER_HOME buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless build -t
- Perform site.p2 action
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless perform \
-D 'qualifier.replacement.*=generator:buildTimestamp' \
-D "generator.buildTimestamp.format='v'yyyyMMdd-HHmm" \
-D 'target.os=*' \
-D 'target.ws=*' \
-D 'target.arch=*' \
'org.adempiere.server:eclipse.feature#site.p2'
- Perform create.product.zip action for linux x86_64
buckminster -L DEBUG -consoleLog -data $HOME/sources/testheadless perform \
-D 'qualifier.replacement.*=generator:buildTimestamp' \
-D "generator.buildTimestamp.format='v'yyyyMMdd-HHmm" \
-D 'target.os=linux' \
-D 'target.ws=gtk' \
-D 'target.arch=x86_64' \
-D product.features=org.idempiere.eclipse.platform.feature.group \
-D product.profile=DefaultProfile \
-D product.id=org.adempiere.server.product \
'org.adempiere.server:eclipse.feature#create.product.zip'
- After this step the server installer must be found at:
/tmp/buckminster/build/org.adempiere.server_4.1.0-eclipse.feature/idempiereServer.gtk.linux.x86_64.zip
This tutorial is brought to you by Carlos Ruiz from GlobalQSS. Feel free to improve directly or suggest using the Discussion tab.
