Install Development Prerequisites
IMPORTANT NOTE BEFORE STARTING: There is an alternative for fast installing development environment being worked by Heng Sin - you can check and test it here: https://github.com/hengsin/idempiere-dev-setup
You might also want to try the custom Eclipse installer for iDempiere at https://github.com/hengsin/idempiere-oomph/releases
These prerequisites apply both for release 9 and for development.
The examples on this guide are using the following versions:
- Ubuntu 20.04 64 bits
- PostgreSQL 10 (used for this guide, you can use any postgres >=10)
- git Client
- Maven 3.6.3
- OpenJDK 11
- Eclipse IDE for Enterprise Java Developers 2022-03
- Tycho Configurator
This guide can be used in other systems (even Windows) taking care of installing the corresponding packages and using corresponding commands. However, for Windows is easier to follow these video How-To
Please refer to http://www.ubuntu.com/download
Install PostgreSQL 10
iDempiere can also run with Oracle 12c to 18c, and also with any PostgreSQL >= 10, but for this How-To we use postgresql 10 - see http://www.postgresql.org/download/linux/ubuntu/ for details
# Create the file repository configuration: sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /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-10
After installing postgres you must check the correct configuration of /etc/postgresql/10/main/pg_hba.conf
The following line requires change of the authentication method:
local all all peer
local all all md5
Please NOTE that some guides suggest configuring trust instead of md5 - but that creates a security issue on your postgres.
And then reload the configuration:
sudo service postgresql reload
Install git Client
sudo apt-get install git
Install OpenJDK 11
sudo apt-get install openjdk-11-jdk
sudo apt-get install maven
Or alternative you can get maven installed manually. I have used apache-maven-3.6.3 installed in a local folder, you can follow instructions to install maven from maven manual
Download the corresponding version for your operating system from "Eclipse IDE for Enterprise Java and Web Developers". At this moment iDempiere requires minimum the 2022-03 version of Eclipse.
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 How-To, let's suppose you uncompressed Eclipse in a folder pointed with the variable $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 Tycho Configurator
- 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
Now you have your prerequisites ready to receive the iDempiere sources, eclipse can be restarted now.