Skip to content
Apache Directory Studio
Branch: master
Clone or download
lhaeger Merge pull request #24 from lhaeger/master
Fixed German translation of connection keystore properties dialog
Latest commit 311e870 May 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Distribute user guides Sep 9, 2018
eclipse-trgt-platform DIRSTUDIO-1195: Update to Eclipse 2018-09 Oct 10, 2018
features Change update site to use https Sep 8, 2018
helps Fix file names of generated PDFs Sep 9, 2018
installers DIRSTUDIO-1185, DIRSTUDIO-1140: Sign MacOS App Sep 8, 2018
p2repositories DIRSTUDIO-1194: Don't execute resources plugin in parent Sep 22, 2018
plugins Fixed German translation of connection keystore properties dialog May 20, 2019
product Updated the copyright dates Sep 1, 2018
src/site Reflect skin artifact renaming Mar 16, 2009
tests DIRSTUDIO-1199, DIRSTUDIO-1204: Fix binary attribute conversion when … Nov 22, 2018
tools Add scripts to run UI tests Sep 25, 2016
.gitignore DIRSTUDIO-1185, DIRSTUDIO-1140: Sign MacOS App Sep 8, 2018
LICENSE Fix legal files. Use separate licences for source and binary distribu… Jul 10, 2016
NOTICE Updated the copyright dates Sep 1, 2018 Update readme Sep 14, 2018
build.bat Added the AL 2.0 headers, added teh build.bat file for windows Dec 24, 2014 Run 2nd step only if 1st succeeded Apr 3, 2015
doap_dirstudio.rdf Updated DOAP file. Mar 1, 2012
pom-first.xml DIRSTUDIO-1024: Rename eclipse-target-platform to eclipse-trgt-platfo… May 31, 2015
pom.xml Update LDAP API version Aug 31, 2018
settings.xml.release Added sample settings.xml file for a release. Oct 10, 2008
settings.xml.sample - Making also distributionManagement for site configurable via settin… Oct 9, 2008

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Apache Directory Studio (TM)

The Eclipse-based LDAP browser and directory client.

Apache Directory Studio is a complete directory tooling platform intended to be used with any LDAP server however it is particularly designed for use with ApacheDS. It is an Eclipse RCP application, composed of several Eclipse (OSGi) plugins, that can be easily upgraded with additional ones. These plugins can even run within Eclipse itself.

Build from command line


  • JDK 8 or newer
  • Maven 3 or newer
  • Sufficient heap space for Maven: export MAVEN_OPTS="-Xmx512m"
  • FIXME: Windows users have to replace the repository location file://${basedir}/target/repository in eclipse-trgt-platform/template/ with the actual path, e.g. file:///C:/Development/studio/eclipse-trgt-platform/target/repository


You can use either of those two methods to build the project :

Do it manually

Build the 'Eclipse Target Platform' and generate MANIFEST.MF files first

mvn -f pom-first.xml clean install

Build the main eclipse artifacts using Tycho

mvn clean install

Use the script (which runs the two previous commands)

On Linux / macOS :

$ ./

or on Windows :

> build.bat


  • Unit tests included in src/test/java of each plugin are executed automatically and run in 'test' phase

  • Core integration tests in tests/test.integration.core are executed automatically and run in 'integration-test' phase

  • SWTBot based UI integration tests in tests/test.integration.ui are disabled by default. They can be enabled with -Denable-ui-tests. A failing test generates a screenshot. To not block the developer computer they can run within a virtual framebuffer:

      export DISPLAY=:99
      Xvfb :99 -screen 0 1024x768x16 &

Build issues

Tycho doesn't handle snapshot dependencies well. The first time a snapshot dependency is used within the build it is cached in ~/.m2/repository/p2. Afterwards any change in the dependency (e.g. ApacheDS or LDAP API) is not considered unless it is deleted from the cache.

To delete all Apache Directory related snapshots run:

rm -rf ~/.m2/repository/p2/osgi/bundle/*

Setup Eclipse workspace

Recommended IDE is 'Eclipse (Luna) for RCP Developers':

  1. Import 'Eclipse Target Platorm' project first

    • File -> Import... -> Maven -> Existing Maven Projects
    • Choose 'studio/eclipse-trgt-platform' as root directory
    • Only this single project is selected
    • Finish
  2. Initialize target platform

    • Open the file with the 'Target Editor'
    • In the top right corner click 'Set as Target Platform'
  3. Import the main plugins

    • File -> Import... -> Maven -> Existing Maven Projects
    • Chosse 'studio' as root directory
    • All the plugins are selected
    • Finish

During import some Maven plugin connectors need to be installed, accept the installation and restart.


From command line

The build produces binaries for all platforms. Archived versions can be found in product/target/products/, unpacked versions can be found below product/target/products/

Within Eclipse

  • Open the product configuration '' with the Product Configuration Editor
  • Click the link 'Launch an Eclipse application'


The release section needs to be updated after git migration!


The root directory contains LICENSE and NOTICE files for the source distribution. The product directory contains LICENSE and NOTICE files for the binary distributions, including licenses for bundled dependencies.

Release artifacts

We release the following artifacts:

  • Source zip (the main artifact we vote on)
  • Maven artifacts
    • poms
    • plugins: pom, jar, javadoc, src
    • features: pom, jar, src
    • helps: pom, jar, src
  • P2 repositories
    • the main features (LDAP Browser, Schema Editor, ApacheDS)
    • dependencies
  • Product archives and installers for
    • Linux GTK 32bit tar.gz
    • Linux GTK 64bit tar.gz
    • maxOS 64bit dmg
    • Windows 32bit exe installer and zip
    • Windows 64bit exe installer and zip
  • Userguides


Update the copyright year, see for the list of files that need to be changed.

Test the release build: rat check, javadoc and source jar generation, installer generation, GPG signing, userguide generation

mvn -f pom-first.xml clean install
mvn -Papache-release,windows,macos -Duserguides clean install

Note: During creation of the macOS installer (DMG) the is signed with the ASF "Developer ID Application" key. See for the process to get one.

Run UI tests (if possible on all platforms)

mvn clean install -Denable-ui-tests

Release build steps

As Tycho doesn't support the maven-release-plugin the release process is as follows:

Define release version

We use a release number scheme that suites for both, Maven and Eclipse.


Example for milestone version: 2.0.0.v20150529-M9. Example for GA version: 2.0.1.v20150529.

Define a variable for later use:

export VERSION=2.0.0.v20150529-M9

Create and checkout branch

git checkout -b $VERSION-prepare
git push origin $VERSION-prepare

Remove OpenLDAP feature

As long as the is not ready for release it needs to be removed from product/

Set the version and commit

find . -name pom-first.xml | xargs sed -i 's/2.0.0-SNAPSHOT/'$VERSION'/'
find . -name pom-first.xml | xargs sed -i 's/2.0.0.qualifier/'$VERSION'/'
sed -i 's/2.0.0-SNAPSHOT/'$VERSION'/' pom.xml
mvn -f pom-first.xml clean install
git checkout pom.xml
mvn org.eclipse.tycho:tycho-versions-plugin:1.2.0:set-version -DnewVersion=$VERSION
git commit -am "Set version number for release $VERSION"
git push origin $VERSION-prepare

Create the release tag

git tag $VERSION
git push origin $VERSION

Clone the repo and checkout the tag into a fresh directory

Run the actual release within a fresh checkout to ensure no previous build artifacts are used.

mkdir studio-release
cd studio-release
git clone .
git checkout $VERSION

Build the release and deploy to staging Nexus repository

mvn -f pom-first.xml clean install
mvn -Papache-release,windows,macos -Duserguides -DretryFailedDeploymentCount=3 clean deploy

Close the staging Nexus repository


Package and sign distribution packages

There is a script that collects and signs all update sites and distribution packages.

For non-interactive signing with GPG agent define env variable:

export RELEASE_KEY=28686142

Run the dist script:

cd dist

Afterwards all distribution packages and user guides are located in target.

Upload the distribution packages to SVN

cd target/dist/$VERSION
svn mkdir$VERSION -m "Create dev area for release $VERSION"
svn co$VERSION .
svn add *
svn commit -m "Add release $VERSION"
cd ../../..

Upload the user guides to SVN

cd target/ug/$VERSION
svn mkdir$VERSION -m "Create user guides area for release $VERSION"
svn co$VERSION .
svn add *
svn commit -m "Add release $VERSION"
cd ../../..

Note: This publishes the user guides directly to the production CMS!

Also update the content/extpaths.txt and whitelist the new version.

Call the vote

Start the vote.


After successful vote publish the artifacts.

Release artifacts in Nexus.

Move distribution packages from dev area to release:

svn mv$VERSION$VERSION -m "Release $VERSION"

Wait 24h for mirror rsync.

Update site

The update site needs to be updated.

In the following files

  • compositeArtifacts--xml.html
  • compositeContent--xml.html
  • product/compositeArtifacts--xml.html
  • product/compositeContent--xml.html

change the location path to the new release and also update the p2.timestamp to the current timestamp milliseconds (hint: date +%s000)


Update news and download links

  • lib/ $version_studio and $version_studio_name
  • content/index.mdtext: version string
  • content/studio/changelog.mdtext
  • content/studio/news.mdtext
  • content/studio/users-guide.mdtext

Eclipse Marketplace

Update entry in Eclipse Marketplace:

Also test to install the plugins from marketplace.

Update Apache Reporter

Add release to

Send announce email

Send the release announce email.


Delete old releases from, ensure they were already archived to

Misc tips and tricks

How to search features, plugins, versions in P2 repo?

Start OSGi console:

ss p2.console
felix:start -t 999

List all IUs within a repository:

provliu *
You can’t perform that action at this time.