commit | c04e4d601524af2fba0d0f7c8718c39d04bfc2ba | [log] [tgz] |
---|---|---|
author | Pierre Smits <pierresmits@apache.org> | Mon Apr 15 19:27:18 2024 +0200 |
committer | GitHub <noreply@github.com> | Mon Apr 15 19:27:18 2024 +0200 |
tree | 3f746aaa8fdb24de96e8c2e216a222a3642d24ab | |
parent | be080f9d9d7d904abb94b418105ba7220221da26 [diff] | |
parent | a072a973ff31f43f7d664054a9129a801c65fa61 [diff] |
Merge pull request #77 from apache/dependabot/github_actions/actions/setup-java-4.2.1 Bump actions/setup-java from 4.0.0 to 4.2.1
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.
export MAVEN_OPTS="-Xmx512m"
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 / macOS :
$ ./build.sh
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
UI integration tests based on SWTBot 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 &
The core and UI integration tests run against ApacheDS, OpenLDAP, and 389ds. The ApacheDS is always started in embedded mode. The others are expected to run, e.g. with the following commands, otherwise those tests are skipped.
docker run -it --rm -p 20389:389 -p 20636:636 --name openldap -e LDAP_TLS_VERIFY_CLIENT=never osixia/openldap:1.3.0 docker run -it --rm -p 21389:3389 -p 21636:3636 --name fedora389ds -e DS_DM_PASSWORD=admin 389ds/dirsrv bash -c “set -m; /usr/lib/dirsrv/dscontainer -r & while ! /usr/lib/dirsrv/dscontainer -H; do sleep 5; done; sleep 5; /usr/sbin/dsconf localhost backend create --suffix dc=example,dc=org --be-name example; fg”
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/org.apache.directory.* <workspace>/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/*
Recommended IDE is ‘Eclipse for RCP and RAP Developers’: https://www.eclipse.org/downloads/packages/
Import ‘Eclipse Target Platform’ project first
Initialize target platform
eclipse-trgt-platform.target
file 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 product/target/products/org.apache.directory.studio.product
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.18/