Integrated Development Environment for Integration Developers
This topic describes how to use the integrated development environment (IDE) for Open Integration development, including generating project artifacts for IDE-based development, testing changes, and packaging the completed solution.
The integrated development environment (IDE) helps Integration Developers to open Open Integration in an IDE to make changes, rebuild, and retest with less turnaround time.
You can use:
--codegento generate the project artifacts for IDE development.--packageto package when the changes are ready.
Prerequisites
Before you start, you must complete the following tasks:
- Rename
settings.xml.templatein <INSTALLED-DIRECTORY> tosettings.xml. - Ensure that all configurations are available in one of the following
locations:
- Local workspace or
- Remote repository
- Place all JKS file references in
config.jsonandprofile.jsonunder <INSTALLED-DIRECTORY>/openit-deploy.
Generating Artifacts for IDE Development
After integration configurations are ready in the local workspace or remote
repository, you must run the design-time pipeline with the
--codegen option as follows:
- On Windows:
- If the integration configurations are available
locally:
gen.bat --codegen - If the integration configurations (
config.jsonandprofile.json) are in a remote Git repository:- Update
git.jsonin<ROOT>/openit-deploywith the required connection and download details. - Run the following
command:
gen.bat --codegen --download-from-git [--git-token=<git password>] [--git-truststore-password=<trusstore passsword>]
- Update
- If the integration configurations are available
locally:
- On Linux:
- If the integration configurations are available
locally:
gen.sh --codegen. - If the integration configurations (
config.jsonandprofile.json) are in a remote Git repository:- Update
git.jsonin<ROOT>/openit-deploywith the required connection and download details. - Run the following
command:
./gen.sh --codegen --download-from-git [--git-token=<git password>] [--git-truststore-password=<trusstore passsword>]
- Update
- If the integration configurations are available
locally:
Preparing IDE
You can use any one of the following IDEs for Open Integration:
- IntelliJ IDE
- Eclipse IDE
- VS Code
- Apache NetBeans
Setting up IntelliJ IDE
- Launch IntelliJ IDEA.
- Open
<INSTALLED-DIRECTORY>/openit-deploy. IntelliJ should detect it as a Maven project. - If prompted, choose .
- Open the Maven tool window and verify that the project lifecycle goals, such as clean and install, are available.
- Configure Maven to use your custom
settings.xml:- Go to .
- In User settings file, select Override, and then browse to <INSTALLED-DIRECTORY>/settings.xml.
- Click Apply, and then click OK.
- In the Maven tool window, click Reload All Maven
Projects. This action ensures that IntelliJ IDEA uses
the internal repositories defined in the
settings.xmlfile.
- Add the GraalVM JDK and set it as Project SDK:
- Go to .
- Click Add JDK from disk, and then select
<INSTALLED-DIRECTORY>/graalvm-jdk. - Name the SDK
GRAAL-JDK-25. - Go to .
- Set Project SDK to
GRAAL-JDK-25. - Click Apply, and then click OK.
- Ensure that Module SDK is set to
Project SDKorGRAAL-JDK-25, in . - Restart IntelliJ IDEA. If indexing issues occur, use Invalidate Caches before restarting.
- Perform a quick verification, from the IntelliJ Maven tool window, run
clean, and then runtestorinstall.
Prepare Eclipse IDE
- Ensure that Maven integration, or m2e, is installed. If it is not installed, use Help, Eclipse Marketplace, search for m2e or Maven Integration for Eclipse, install it, and restart Eclipse.
- Import the Maven project:
- Go to .
- Select .
- Set Root Directory to
<INSTALLED-DIRECTORY>/openit-deploy. - Ensure that
pom.xmlis detected, and then click Finish.
- Configure Maven to use your custom
settings.xml:- Go to .
- Select Override, browse to
<INSTALLED-DIRECTORY>/settings.xml. - Click Apply and then Close.
- Add the GraalVM JDK in Eclipse and set it for the project:
- Go to .
- Click Add, choose Standard
VM, and set JRE home to
<INSTALLED-DIRECTORY>/graalvm-jdk. - Name it
JRE GRAAL-JDK-25. - Optionally select it as the default.
- Click Apply and then Close.
- Set the project’s JDK level:
- Click .
- Go to .
Ensure that the project uses the correct JRE.
- Go to Java Compiler and set the compliance level required by the build.
Ensure you match the
pom.xmlor toolchain expectations
- Restart Eclipse.
Prepare VS Code
- In VS Code, install the following extensions:
- Extension Pack for Java (Microsoft)
- Maven for Java
- Open
<INSTALLED-DIRECTORY>/opening-deployas the project folder. - Configure the GraalVM JDK by using one of the following settings.
- Option A: Open Settings (JSON) and add the following:
{ "java.jdt.ls.java.home": "<INSTALLED-DIRECTORY>/graalvm-jdk" } - Option B: Configure multiple runtimes:
{ "java.configuration.runtimes": [ { "name": "JavaSE-25", "path": "<INSTALLED-DIRECTORY>/graalvm-jdk", "default": true } ] } - Restart VS Code.
- Option A: Open Settings (JSON) and add the following:
- Configure Maven to use your custom
settings.xmlthrough one of the following options:- Run Maven with the explicit settings option to use the project-specific
Maven settings file:
mvn -s <INSTALLED-DIRECTORY>/settings.xml clean install - Configure the Visual Studio Code Maven extension to use the required
Maven settings file. Set the Maven User settings path to your
<INSTALLED-DIRECTORY>/settings.xml.
- Run Maven with the explicit settings option to use the project-specific
Maven settings file:
- Verify the setup as
follows:
mvn -s <INSTALLED-DIRECTORY>/settings.xml -version mvn -s <INSTALLED-DIRECTORY>/settings.xml clean install
Prepare Apache NetBeans
- Go to File, and then Open Project. Select
<INSTALLED-DIRECTORY>/openit-deploy. - Configure Maven settings:
- Depending on the NetBeans version, go to .
- Set User settings to
<INSTALLED-DIRECTORY>/settings.xml.Note: If NetBeans does not provide a direct setting, add-s <INSTALLED-DIRECTORY>/settings.xmlfor builds, or use command-line builds.
- Configure GraalVM JDK:
- Go to .
- Add
<INSTALLED-DIRECTORY>/graalvm-jdkas a platform. - Name the platform
GRAAL-JDK-25. - Click .
- Set Java Platform to
GRAAL-JDK-25.
- Restart NetBeans. Close and reopen to ensure that the platform and Maven settings are applied.
Understanding the Project Structure
The main class is available at
src/main/java/com/siebel/openint/resources/Main.java.
The following files and folders are copied to
src/main/java/resources:
integration-configurationsmerged_config.jsonprofile.jsonlog4j2.xmlJKS files
Starting the Open Integration Server in an IDE
Use the main class com.siebel.openint.resource.Main and set the
environment variable SIEBEL_EVENT_PUBSUB to 1.
- Go to .
- Create or select an Application configuration for
com.siebel.openint.resource.Main. - Set main class to
com.siebel.openint.resource.Main. - Select the module that contains the main class.
- Add the environment variable
SIEBEL_EVENT_PUBSUB=1. - Apply the changes and run the configuration.
For Eclipse IDE:
- In Package Explorer, locate
com.siebel.openint.resource.Main. - Select Run As, and then Run Configurations.
- Under Java Application, select or create a Java Application configuration.
- On the Environment tab, add
SIEBEL_EVENT_PUBSUBwith the value 1. - Apply the changes and run the configuration.
-
Option A: Using launch.json
- Add or update
launch.jsonas follows:{ "type": "java", "name": "Run Main (Kafka)", "request": "launch", "mainClass": "com.siebel.openint.resource.Main", "env": { "SIEBEL_EVENT_PUBSUB": "1" } } - Locate the run configuration named Run Main (Kafka).
- Click Run to start the application or click Debug to start the application in debug mode.
- Add or update
-
Option B: Run from the terminal
- On Linux:
SIEBEL_EVENT_PUBSUB=1 mvn exec:java - On Windows Command Prompt or
PowerShell:
$env:SIEBEL_EVENT_PUBSUB="1"; mvn exec:javaNote: Exact Maven goal may differ based on your project setup.
- On Linux:
For NetBeans:
- Click the .
- Go to Run.
- Set Main Class to
com.siebel.openint.resource.Main, if it is not already set. - Add
SIEBEL_EVENT_PUBSUB=1in Environment Variables or VM Options, depending on the NetBeans version. - Run the project.
Continuous Testing and Packaging
If you change any configuration files:
- During IDE testing, you must re-run code generation:
- On Linux, from
<INSTALLED-DIRECTORY>/openit-deploy, run:./gen.sh --codegen - On Windows Command Prompt or PowerShell, from
<INSTALLED-DIRECTORY>\openit-deploy, run:.\gen.bat –codegen
This regenerates the configurations and keeps the project up to date.
- On Linux, from
- When the changes are ready to be shipped, run packaging:
- On Linux, from
<INSTALLED-DIRECTORY>/openit-deploy, run:./gen.sh --package - On Windows Command Prompt or PowerShell, from
<INSTALLED-DIRECTORY>\openit-deploy, run,.\gen.bat –package.
- On Linux, from
Packaging creates
<INSTALLED-DIRECTORY>/openit-deploy/target/opeint.jar that
includes all auto generated artifacts.
Packaging also copies all configurations into
<INSTALLED-DIRECTORY>/openit-deploy/target.