Because OpenDS is dead and OpenDJ is the new leading Java directory server, LSC has moved to embed it as sample and test directory server.
To achieve this, it’s was quite simple :
- Install a OpenDJ 2.4.3 full distribution
- Upgrade your OpenDS maven dependency to OpenDJ 2.4.4-SNAPSHOT (group, artifact, version and repository changes are required)
- Add the Maven dependency to com.sleepycat.je-4.1.10 through the Oracle Maven repository (Maven setup)
- Copy / paste the schema and update subdirectories with the 2.4.3 installed version to your embedded version
- Check differences between your old config.ldif and the new one – remove the SNMP related if not required (or add dependency)
And that’s it : you will be able to start your freshly installed OpenDJ directory server !
Note : You don’t even need to update your code because the OpenDJ is still based on the OpenDS package names.
Maven depency :
<dependency>
<groupId>org.forgerock.opendj</groupId>
<artifactId>opendj-server</artifactId>
<version>2.4.4-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
<optional>false</optional>
</dependency>
And add the ForgeRock snapshot repository :
<repository>
<id>maven.forgerock.org</id>
<name>maven.forgerock.org-snapshot</name>
<url>http://maven.forgerock.org/repo/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
You will also need to add BerkeleyDB dependency :
<dependency>
<groupId>com.sleepycat</groupId>
<artifactId>je</artifactId>
<version>4.1.10</version>
</dependency>
through Oracle repository :
<repository>
<id>oracleReleases</id>
<name>Oracle Released Java Packages</name>
<url>http://download.oracle.com/maven</url>
<layout>default</layout>
</repository>