Difference between revisions of "Development With Intellij"
From iDempiere en
(Created page with "'''Goal:''' Development '''Developer:''' Hengsin '''Feature''' '''Ticket:''' [https://idempiere.atlassian.net/browse/IDEMPIERE-5150 IDEMPIERE-5150] __TOC__ ===Description=...") |
(→Steps) |
||
| Line 11: | Line 11: | ||
===Steps=== | ===Steps=== | ||
| − | * Install '''Intellij 2024.3.5''' | + | * Install '''Intellij 2024.3.5''' or '''Intellij 2025.1''' |
| − | * Install '''Eclipse PDE Partial plugin''' ([https://github.com/hengsin/eclipse-pde-partial-idea/releases/tag/166.v202403. | + | * Install '''Eclipse PDE Partial plugin''' ([https://github.com/hengsin/eclipse-pde-partial-idea/releases/tag/166.v202403.20250414 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. | * 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 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. | * 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. | ||
| − | * To open the iDempiere setup dialog, run the '''org.adempiere.app.install''' Maven run configuration. | + | * Run with Maven: |
| − | * To open the Generate Model dialog, run the '''org.adempiere.modelgenerator.app''' Maven run configuration. | + | ** To open the iDempiere setup dialog, run the '''org.adempiere.app.install''' Maven run configuration. |
| − | * To run the iDempiere server, run the '''org.adempiere.server.application''' Maven run configuration. | + | ** To open the Generate Model dialog, run the '''org.adempiere.modelgenerator.app''' 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...'''. | + | ** To run the iDempiere server, run the '''org.adempiere.server.application''' Maven run configuration. |
| − | * Due to the use of Equinox launcher, the Debug Maven run configuration menu wouldn't work. | + | ** 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...'''. |
| − | * To setup new 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>/). | + | ** 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 wth '''Eclipse Application Partial''' configuration: | ||
| + | ** Run or Debug the '''iDempiere Server''' configuration | ||
| + | ** Run or Debug the '''Install''' configuration | ||
| + | ** Run or Debug the '''Model Generator''' configuration | ||
[[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 08:33, 14 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 with Maven:
- To open the iDempiere setup dialog, run the org.adempiere.app.install Maven run configuration.
- To open the Generate Model dialog, run the org.adempiere.modelgenerator.app Maven run configuration.
- To run the 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 wth Eclipse Application Partial configuration:
- Run or Debug the iDempiere Server configuration
- Run or Debug the Install configuration
- Run or Debug the Model Generator configuration
