Install Development Prerequisites

From iDempiere en
Jump to: navigation, search

Table of Contents | Install Development Prerequisites | Download the Code

The examples on this guide are using the following versions:

  • Ubuntu 16.04.4 64 bits
  • PostgreSQL 9.6.8
  • PostgreSQL contrib (for UUID support)
  • Mercurial Client 3.7.3
  • Maven 3.5.3
  • OpenJDK 1.8.0_171
  • Eclipse IDE for Java EE Developers 4.7.3 Oxygen.3
  • Mercurial Eclipse Plugin 2.5.0
  • Buckminster 4.5 (WARNING: special MODIFIED version)
  • Tycho Build Tools 0.4.1
  • Maven Tycho Utilities 1.0.0
  • Tycho Configurator
  • m2e connector for maven-dependency-plugin

But this guide can be used in other systems (even Windows) taking care of installing the corresponding packages and using corresponding commands.

Install Ubuntu

Please refer to http://www.ubuntu.com/download

Install PostgreSQL 9.6

iDempiere can also run with Oracle 11G or 12C, and also with any PostgreSQL >= 9.1, but for this tutorial we use postgresql 9.6 - see http://www.postgresql.org/download/linux/ubuntu/ for details

echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
sudo apt-get install postgresql-contrib-9.6

Install Mercurial Client 3.7.3

sudo apt-get install mercurial

Install OpenJDK 1.8.0

sudo apt-get install openjdk-8-jdk

Install Maven 3.5.3 (required if working on default branch - after release 5.1)

sudo apt-get install maven

Or alternative you can get maven installed manually. I use apache-maven-3.5.3 installed in a local folder, you can follow instructions to install maven from maven manual

Install Eclipse Oxygen

Download the corresponding version for your operating system from "Eclipse IDE for Java EE Developers"

For Ubuntu 16.04.4 64 bits I downloaded Oxygen.3 version 4.7.3 here

On Ubuntu, you just uncompress it and it is ready for use. You could move the folder somewhere sensible, but this is optional. For the purposes of this tutorial, let's suppose you uncompressed Eclipse in a folder called $ECLIPSE_HOME.

The first time you run Eclipse it will ask you for the workspace folder. You can use the default workspace because you will change it later,

Install Mercurial Eclipse Plugin 2.5.0

  • Open the eclipse just installed
  • Navigate to Help > Eclipse Marketplace
  • Fill the Find box with: MercurialEclipse
  • Push the "Go" button
  • Push the "Install" button in front of the "MercurialEclipse 2.2" found
  • Complete the installation accepting the license and confirming the warning dialog

Install Eclipse Prerequisite for Release 5.1

Install Buckminster 4.5

  • Open the eclipse just installed
  • Navigate to Help > Install New Software
  • Push the "Add" button
  • Fill Name: Buckminster 4.5
  • Fill Location: https://github.com/hengsin/bucky-updates-4.5/raw/master
  • OK
  • When the list of packages appears select
    • Buckminster - Core
    • Buckminster - Maven support
    • Buckminster - PDE support
      • The rest are not required
  • Complete the installation pushing Next .... accepting the license and then Finish

Now you have your prerequisites ready to receive the iDempiere sources for release 5.1

Install Eclipse Prerequisites for branch default (after release 5.1)

Install Tycho Support

  • Open the eclipse just installed
  • Navigate to Help > Eclipse Marketplace
  • Fill the Find box with "Tycho" and click "Go"
  • Click Install for "Tycho Build Tools 0.4.1"
    • Accept the terms, certificate, etc until installed, no need to restart yet
  • Navigate again to Help > Eclipse Marketplace
  • Fill the Find box with "Tycho" and click "Go"
  • Click Install for "Maven Tycho Utilities 1.0.0"
    • Accept the terms, certificate, etc until installed, no need to restart yet

Install m2e Connector

  • Navigate to Window > Preferences
  • Navigate to Maven > Discovery
  • Click Open Catalog
  • On Find field, enter Tycho
  • Select Tycho Configurator, click Finish to install it
    • Accept the terms, certificate, etc until installed, no need to restart yet
  • Click again Open Catalog
  • On Find field, enter m2e connector for maven-dependency-plugin
  • Select m2e connector for maven-dependency-plugin, click Finish to install it
    • Accept the terms, certificate, etc until installed
  • Close eclipse

Now you have your prerequisites ready to receive the iDempiere sources for branch default


This tutorial is brought to you by Carlos Ruiz from GlobalQSS. Feel free to improve directly or suggest using the Discussion tab.