IDempiere/Setting up Eclipse

From WikiQSS
Revision as of 01:18, 10 August 2012 by CarlosRuiz (talk | contribs) (sync)

Table of Contents | Download the Code | Setting up Eclipse | Importing DB Seed Manually

There are two excellent resources explaining graphically what is required to setup Eclipse:

I'll try to explain here also step by step what is required to let eclipse compile and run iDempiere:

Configuring Target Platform

  • Open the eclipse you configured following the instructions from Prerequisites page
  • Navigate to File > Switch Workspace > Other
  • On the dialog open fill the workspace with the folder where you cloned the code, named above as $IDEMPIERE_REPOSITORY, i.e. /home/carlos/sources/myexperiment)
  • After the eclipse open again navigate to Window > Preferences > Plug-in Development > Target Platform
  • Push the "Add" button
  • Select "Nothing: Start with an empty target definition" and click Next
  • Fill the Name with: Adempiere Target Platform
  • Push the "Add" button
  • Select "Directory" and click Next
  • Fill Location with "${workspace_loc}/targetPlatform"
  • "Finish" button
  • Make the just created platform "Adempiere Target Platform" active and push the "OK" button

Materializing iDempiere project within Eclipse

Now is time to materialize the project, you must be connected to the internet for this stage:

  • Navigate to File > Import > Buckminster > Materialize from Buckminster MSPEC, CQUERY or BOM
  • Push the "Next" button
  • Fill the "Enter a URL ..." box with this folder $IDEMPIERE_REPOSITORY/org.adempiere.sdk-feature/adempiere.mspec
    • You MUST replace the $IDEMPIERE_REPOSITORY with the corresponding folder name
    • Or even better you can use the "Browse" button to navigate there and select the adempiere.cquery file
  • Here eclipse takes some time to review dependencies and after that you can push the "Finish" button

Now is a good time to brew some coffee (better Colombian coffee) - Eclipse will download and configure the whole project and this can be time consuming.

When this step finishes is recommended to close eclipse and take a backup of the $IDEMPIERE_REPOSITORY folder, in case something mess later you can restore the backup and you won't need to download again the whole thing from internet.