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.
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.
eclipse-trgt-platform/template/org.apache.directory.studio.eclipse-trgt-platform.templatewith the actual path, e.g.
You can use either of those two methods to build the project :
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
On Linux / Mac OS X :
or on Windows :
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 &
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 the considered unless it is deleted from the cache.
Recommended IDE is ‘Eclipse (Luna) for RCP Developers’: http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/lunasr2
Import ‘Eclipse Target Platorm’ project first
Initialize target platform
eclipse-trgt-platform.targetfile with the ‘Target Editor’
Import the main plugins
During import some Maven plugin connectors need to be installed, accept the installation and restart.
The build produces binaries for all platforms. Archived versions can be found in
product/target/products/, unpacked versions can be found below
tentative, not fully tested yet...
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.
We release the following artifacts:
Test the release build: rat check, javadoc and source jar generation, GPG signing, userguide generation
mvn -f pom-first.xml clean install mvn -Papache-release -Duserguides clean install
Run UI tests (if possible on all platforms)
mvn clean install -Denable-ui-tests
As Tycho doesn't support the maven-release-plugin the release process is as follows:
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:
Define a variable for later use:
Also create an empty directory used during the release process and store it in a variable:
cd $RELEASE_DIR svn copy https://svn.apache.org/repos/asf/directory/studio/trunk https://svn.apache.org/repos/asf/directory/studio/branches/$VERSION -m "Prepare release $VERSION" svn checkout https://svn.apache.org/repos/asf/directory/studio/branches/$VERSION branch-$VERSION cd branch-$VERSION
As long as the
org.apache.directory.studio.openldap.feature is not ready for release it needs to be removed from
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 svn revert pom.xml mvn org.eclipse.tycho:tycho-versions-plugin:0.24.0:set-version -DnewVersion=$VERSION svn commit -m "Set version number for release $VERSION"
cd $RELEASE_DIR svn copy https://svn.apache.org/repos/asf/directory/studio/branches/$VERSION https://svn.apache.org/repos/asf/directory/studio/tags/$VERSION -m "Tag release $VERSION" svn checkout https://svn.apache.org/repos/asf/directory/studio/tags/$VERSION tag-$VERSION cd tag-$VERSION
mvn -f pom-first.xml clean install mvn -Papache-release -Duserguides -DretryFailedDeploymentCount=3 clean deploy
There is a script that collects and signs all update sites and distribution packages.
For non-interactive signing with GPG agent define env variable:
Run the dist script:
cd dist ./dist.sh
Afterwards all distribution packages are located in
cd target/$VERSION svn mkdir https://dist.apache.org/repos/dist/dev/directory/studio/$VERSION -m "Create dev area for release $VERSION" svn co https://dist.apache.org/repos/dist/dev/directory/studio/$VERSION . svn add $VERSION svn commit -m "Add release $VERSION"
Start the vote.
After successful vote we can publish the artifacts
dist/targetcan be used as-is.
Wait 24h for mirror rsync.
The update site https://svn.apache.org/repos/asf/directory/site/trunk/content/studio/update needs to be updated.
In the following files
change the location path to the new release and also update the
p2.timestamp to the current timestamp milliseconds (hint:
Update news and download links
Delete old releases.
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 http://download.eclipse.org/eclipse/updates/4.5/ *