The following section describes how to check out the source code and work with the Identity Manager application within the IntelliJ IDE.
Project
First create a new project in IntelliJ.
- Select New Project from the File Menu
- In the screen below select Create Project From Scratch
- Click on Next

- Enter a name for the project. In our example, we used openiam-idm
- Enter a location where the project should be created. In our example, we used /workspace/openiam-idm
- Click on Finish
- This creates a new project in IntellJ. Next we will need to check out the source from version control and set up modules with IntelliJ

Checking out the Source
From IntelliJ's Version Control menu, select Checkout From Version Control followed followed by Subversion
Next select a repository as shown in the dialog box below. If this the first time that you are doing this, then enter the URL for the source repository
- From the source tree, select openiam-pojo-intf
- Click on Checkout

- Select the destination directory to check out the project. This directory should be the same as the project directory you defined in the previous step.
- Click on OK

- The IDE will then list some possible destination directories. In our example, we created a directory called openiam-pojo-intf under our root destination directory
- Click on Ok.
The IDE will then extract the source from the version control system into your local environment.
Repeat the above steps for the following projects: - openiam-pojo-intf
- openiam-pojo-services
- openiam-idm-intf
- openiam-idm-services
- openiam-connector-intf
- openiam-pojo-services
- openam-idm-esb
- openiam-webconsole
- openiam-selfservice
To build the Enterprise Edition, please extract the following jar files in addition to the ones listed above.
- openiam-idm-ee-intf
- openiam-idm-ee-services

Modules
Once the project has been set up and the sources extracted, we need to set up a module for each component that you checked out in the last step. The process to set up a module in IntelliJ are described below.
- Select New Module from the File Menu
- Select Import module from external model. OpenIAM uses maven as its build system and each component has a pom.xml file which IntelliJ can use while setting up the module.
- Click on Next

- On the screen below, select Maven, which tells the IDE to look for a module pom.xml file.

- Enter a root directory for the module. This is the location where you checked out the files in the previous step.
- Click on Next

- The IDE will present the screen below which shows the name of the module from your pom.xml file.
- Click on Finish.
Repeat these steps for each module.
