Difference between revisions of "Development With Intellij"

From iDempiere en
Line 27: Line 27:
 
** '''Generate Model''': run or debug the '''Model Generator''' configuration
 
** '''Generate Model''': run or debug the '''Model Generator''' configuration
 
** '''iDempiere Server''': run or debug the '''iDempiere Server''' configuration
 
** '''iDempiere Server''': run or debug the '''iDempiere Server''' configuration
 +
 +
===Development with idempiere-rest module===
 +
1. Import '''com.trekglobal.idempiere.rest.api''' module
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 1.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 1]]
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 2.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 2]]
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 3.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 3]]
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 4.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 4]]
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 5.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 5]]
 +
[[File:Import com.trekglobal.idempiere.rest.api Step 6.png|800x600px|frameless|Import com.trekglobal.idempiere.rest.api - Step 6]]
 +
 +
2. Configure Imported com.trekglobal.idempiere.rest.api Module
 +
[[File:Exclude Rest API Module Target Folder.png|800x600px|frameless|Exclude com.trekglobal.idempiere.rest.api target folder]]
 +
[[File:Com.trekglobal.idempiere.rest.api compile output path.png|800x600px|frameless|Compile output path of com.trekglobal.idempiere.rest.api]]
 +
[[File:Com.trekglobal.idempiere.rest.api facet output path.png|800x600px|frameless|com.trekglobal.idempiere.rest.api output path for Eclipse PDE Partial facet]]
 +
 +
3. Close and re-open module setting to verify that the module's dependencies have been updated by the Eclipse PDE Partial plugin.
 +
[[File:Com.trekglobal.idempiere.rest.api Module Dependencies.png|800x600px|frameless|Updated module dependencies of com.trekglobal.idempiere.rest.api ]]
 +
 +
4. Create a duplicate copy of '''iDempiere Server''' run configuration. Change runtime data directory path and select the '''com.trekglobal.idempiere.rest.api''' module
 +
[[File:Com.trekglobal.idempiere.rest.api Run Configuration.png|800x600px|frameless|Run configuration for com.trekglobal.idempiere.rest.api]]
 +
 +
5. Run/Debug the newly created run configuration to test
  
 
[[Category:New Features|D]]
 
[[Category:New Features|D]]
 
[[Category:New Features w13|D]]
 
[[Category:New Features w13|D]]
 
[[Category:New Features Development]]
 
[[Category:New Features Development]]

Revision as of 09:56, 17 April 2025

Goal: Development

Developer: Hengsin

Feature Ticket: IDEMPIERE-5150

Description

With the help of the Eclipse PDE Partial plugin, use IntelliJ for iDempiere development.

Steps

  • Install Intellij 2024.3.5 or Intellij 2025.1
  • Install Eclipse PDE Partial plugin (Link to installation file). Don't install the current version hosted at Intellij market place as the latest release version 1.6.6 at market place is not compatible with Intellij 2024.3.5
  • At the Projects window, select Open and pick the root iDempiere source folder. Make sure you have run mvn verify successfully before doing this.
  • The Eclipse PDE Partial plugin should be able to setup everything without further input from user.
  • The Eclipse PDE Partial plugin doesn't works well with Maven build files. Select Skip if the Intellij IDE shows the Load Maven Projects popup dialog.
  • Run or debug with Maven Run Configuration:
    • iDempiere Setup: run the org.adempiere.app.install Maven run configuration.
    • Generate Model: run the org.adempiere.modelgenerator.app Maven run configuration.
    • iDempiere Server: run the org.adempiere.server.application Maven run configuration.
    • To debug, run one of the Maven run configuration above, click the Attach debugger link in the Run output panel or use Run > Attach to process....
    • Due to the use of Equinox launcher, the Debug Maven run configuration menu wouldn't work.
    • To setup new maven run configuration, please refer to one of the pre-setup Maven run configuration. You can setup the bundles.info and dev.properties manually or copy it from Eclipse launch configuration (<workspace>/.metadata/.plugins/org.eclipse.pde.core/<launch configuration name>/).
  • Run or debug with Eclipse Application Partial Configuration:
    • iDempiere Setup: run or debug the Install configuration
    • Generate Model: run or debug the Model Generator configuration
    • iDempiere Server: run or debug the iDempiere Server configuration

Development with idempiere-rest module

1. Import com.trekglobal.idempiere.rest.api module Import com.trekglobal.idempiere.rest.api - Step 1 Import com.trekglobal.idempiere.rest.api - Step 2 Import com.trekglobal.idempiere.rest.api - Step 3 Import com.trekglobal.idempiere.rest.api - Step 4 Import com.trekglobal.idempiere.rest.api - Step 5 Import com.trekglobal.idempiere.rest.api - Step 6

2. Configure Imported com.trekglobal.idempiere.rest.api Module Exclude com.trekglobal.idempiere.rest.api target folder Compile output path of com.trekglobal.idempiere.rest.api com.trekglobal.idempiere.rest.api output path for Eclipse PDE Partial facet

3. Close and re-open module setting to verify that the module's dependencies have been updated by the Eclipse PDE Partial plugin. Updated module dependencies of com.trekglobal.idempiere.rest.api

4. Create a duplicate copy of iDempiere Server run configuration. Change runtime data directory path and select the com.trekglobal.idempiere.rest.api module Run configuration for com.trekglobal.idempiere.rest.api

5. Run/Debug the newly created run configuration to test

Cookies help us deliver our services. By using our services, you agree to our use of cookies.