The quickest and easiest way to use IntelliJ IDEA 15 for OpenDJ development is to:
Clone the source code from ForgeRock's Stash into a new directory. This will require a community login:
$ git clone https://stash.forgerock.org/projects/OPENDJ/repos/opendj opendj-trunk $ cd opendj-trunk $ mvn clean install |
Start IntelliJ IDEA, and open (not import) the above directory as a project.
opendj-trunk
) should be ready for your work.Open the Maven panel, expand OpenDJ and double-click the install label.
That's because of the opendj-rxjava
module is empty since it only rebundles the rxjava
dependency.
To fix this, you have to ignore the opendj-rxjava
module: right click on its pom.xml
> Maven
> Ignore Project
and then right-click > Maven > Reload the whole project from the opendj
maven pom.
You may need to restart IntelliJ for this to work.
Open the Maven panel, check the "precommit" profile, and do a build as above.
Go to Run > Edit Configurations... and choose Defaults > TestNG. Edit the VM options field, adding: "-Dorg.opends.server.BuildRoot=.", ensure that the working directory is "$MODULE_DIR$", and remove the Make job in the Before Launch list.