Repository navigation
Update the build to Java 21, Tycho 5 and Eclipse 4.41, and fix the CI tests - #125
Open
opravil-jan wants to merge 12 commits into
Open
opravil-jan wants to merge 12 commits into
opravil-jan wants to merge 12 commits into
Conversation
The antlr-maven-plugin runs antlr.Tool in-process and traps its System.exit() with a SecurityManager. Java 18+ no longer allows installing a SecurityManager, so the OpenLDAP ACL editor does not build on current JDKs. Run antlr.Tool with exec-maven-plugin in a separate JVM instead and add the generated sources with build-helper in pom-first.xml. The exec-maven-plugin version is now managed in the root POM (3.7.0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eclipse 4.41 requires Java 21, so the build and the product now target Java 21 (maven.compiler.release, osgi.requiredJavaVersion). Build: - Tycho 2.3.0 -> 5.0.4 (needs Maven 3.9.9+), parent POM 48 -> 52. - pom-first.xml of the target platform uses 'pom' packaging, because Tycho 5 resolves an eclipse-target-definition before the local p2 repository it refers to has been built. The generated .target is attached with build-helper, so it is still installed. Target platform: - Eclipse 4.41, SWTBot 4.3.0, Orbit 4.41, Babel R0.20.0. - Drop what Eclipse 4.41 no longer ships: javax.xml, javax.xml.stream, jdt.launching.macosx, org.eclipse.osgi.services, source features, explicit EMF/ECF product features and missing Babel fragments. - dom4j from Orbit (org.dom4j 2.2.0) instead of the ServiceMix bundle, whose javax.xml.stream [1.0,2) import no longer resolves cleanly. - slf4j-api 1.7.36 is published locally (LDAP API and ApacheDS import [1.7,1.8), Eclipse ships 2.x); slf4j-nop only satisfies org.slf4j.impl while the target is resolved. - commons-logging 1.2 is published locally for httpclient. Libraries: commons-codec 1.23.0, collections4 4.6.0, io 2.22.0, lang3 3.22.0, pool2 2.13.1, text 1.15.0, httpclient 4.5.14, httpcore 4.4.16, BouncyCastle 1.87 (jdk18on + bcutil), Caffeine 2.9.3, MINA 2.1.15, slf4j 1.7.36, JUnit 5.14.4 / Platform 1.14.4, hamcrest 3.0.0, skin 1.0.3. LDAP API stays on 2.1.0 and MINA on 2.1.x: ApacheDS 2.0.0.AM26 uses SslFilter.DISABLE_ENCRYPTION_ONCE (removed in MINA 2.2) and LDAP API 2.1.1+ requires MINA 2.2. ApacheDS 2.0.0.AM27 cannot be used because several of its bundles miss an Import-Package for org.apache.directory.api.ldap.model.schema.registries. Code: replace the removed IPageLayout.ID_RES_NAV and setShowFastViewBars APIs. BREAKING CHANGE: building and running Directory Studio requires Java 21. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- POI 3.9 -> 6.0.0 for the XLS export. POI 5+ needs commons-math3, SparseBitSet and log4j-api, which are embedded next to it, and commons-io, commons-codec and commons-collections4 packages, which are imported. ExportXlsRunnable uses CellType instead of the removed CELL_TYPE_* constants. The embedded jar names now come from the version properties. - xerces 2.11.0 -> 2.12.2 (embedded in ldapbrowser.core). - FOP and xmlgraphics-commons 2.9 -> 2.12, xalan 2.7.2 -> 2.7.3 plus its serializer, which is a separate artifact since 2.7.3, and ant-apache-regexp 1.10.14 -> 1.10.18 for the help and user guide generation. odftoolkit stays on 0.8.8 / 0.7: odfdom 0.13 pulls about 20 additional jars and should be a separate change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build requires Java 21, so the GitHub workflows now build with JDK 21 and 25 (the JDK 11 workflow is removed, the JDK 17 one becomes JDK 25) and the Jenkins stages run on Java 21 only. Update actions/checkout to v7.0.1, actions/setup-java to v6.3.0, actions/upload-artifact to v7.0.2, github/codeql-action to v4.39.5 and ossf/scorecard-action to v2.6.0, keeping each workflow's existing pinning style (SHA in the build and Scorecard workflows, version tags in CodeQL). CodeQL now sets up JDK 21 explicitly instead of relying on the runner's default JDK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commit 9f40267 (German translation improvements) replaced the hard-coded view and category name "LDAP Servers" with %View_ServersView_name, which is "Servers" in plugin.properties. That renamed the view and its Show View category in the English UI, and the UI tests no longer found the "LDAP Servers" view. Set the English view name back to "LDAP Servers" and use the existing View_Category_name key for the category. The German names are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The product now contains two slf4j.api bundles: 1.7.36 for the LDAP API and ApacheDS, and 2.x from the Eclipse platform. The template editor and the OpenLDAP ACL editor imported org.slf4j without a version, so they could be wired to slf4j 2.x and bypass the slf4j-eclipselog binding. Use the same range as the LDAP API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two problems in the dependencies update site (p2repositories/dependencies), which mirrors the local target platform repository: - org.dom4j comes from Eclipse Orbit and was missing from the update site, so installing the LDAP Browser into an Eclipse IDE failed on the org.dom4j import. Mirror that one IU from Orbit as well. - slf4j-nop, needed only to resolve the target platform, was published, so p2 could pick it as the org.slf4j.impl provider and drop all LDAP API logging. Publish it into a separate resolution-only repository that is not mirrored. Also define the versions that were written twice (dom4j, ServiceMix ANTLR, JUnit, the Orbit URL) once as properties, and note in the rcp feature that its slf4j.api version must match org.slf4j.bundleversion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tycho 5 needs Maven 3.9.9 or newer, but not 3.10: Maven 3.10.x (Resolver 2.0) fails to resolve the bundles' dependencies with "Invalid Collect Request: null". The build environments have neither: the Jenkins image apachedirectory/maven-build:jdk-21 ships Maven 3.9.6 and GitHub's Ubuntu runners ship Maven 3.10.1. Add the Maven Wrapper (only-script, with the distribution's SHA-256 checksum) and use it in Jenkins, the CodeQL workflow, build.sh, build.bat and the build instructions. The testlab instructions now use the jdk-21 image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Eclipse 4.41 labels the menu item "Preferences..." and titles the new wizard dialog "New" (the page title is "Select a wizard"). - Since ea38b9c a new (empty) DN value is edited in multi-select mode: a list with Add and Remove buttons instead of a combo with Browse. The DN editor bot gets an Add button and a list accessor; the entry editor and alias entry tests use them for new values. Existing values still use the single-DN dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SWTBot UI tests were never run by the GitHub workflows, and the Jenkins pipeline stops before them because of failing core integration tests against OpenLDAP/389ds. Run the main build with -Denable-ui-tests under xvfb-run with metacity. The tests need a window manager: without one, no shell is active after a dialog closes. On failure, upload the surefire reports and the UI test screenshots. Both workflows now use the Maven Wrapper. The README explains how to run the UI tests locally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Java DIGEST-MD5 client picks the 3DES cipher for auth-conf, and the Cyrus SASL DIGEST-MD5 plugin that the 389ds test image installs from openSUSE fails with "failed to init cipher '3des'" (RC4 and DES work). Exclude 389ds from the three tests that request auth-conf until 3DES works again in that plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
apachedirectory/maven-build:jdk-21 is published for arm64 only, so it cannot run on the amd64 agents, and it has no window manager for the UI tests. The pipeline now builds tools/testlab/build-image (Temurin 21, GTK, Xvfb, metacity, dbus, krb5-user) and runs the build like the GitHub workflows: xvfb-run, dbus-run-session and metacity. HOME and user.home point to /tmp/home, because the Jenkins user has no home directory in the image. The 389ds container installs the DIGEST-MD5 and GSSAPI SASL plugins at start. Since openSUSE rotated its signing key in 2026, zypper skipped every repository, the plugins were missing and the SASL tests against 389ds failed. Import the current key first, and use --replacefiles, because the current packages conflict with OpenSSL 1.1 in the 2.2 image. 389ds stays on 2.2: 2.4 and later answer operations below a referral entry with noSuchObject instead of a referral. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR consolidates the open dependency and build PRs into one change and brings the whole build up to date: Java 21, Tycho 5.0.4, Eclipse 4.41, and current releases of the libraries the product ships. It also makes the SWTBot UI tests pass again and runs them in every GitHub Actions build.
It replaces these PRs, or deliberately leaves them out:
Bundle-ClassPathand the POI 5+ dependencies (commons-math3, SparseBitSet, log4j-api) were missingChanges
Java, Tycho, Eclipse
maven.compiler.release21,-Dosgi.requiredJavaVersion=21). Eclipse 4.41 requires Java 21.javax.xml,javax.xml.stream,org.eclipse.jdt.launching.macosx,org.eclipse.osgi.services, the source features, the EMF/ECF features in the product (their bundles still come in as dependencies) and the Babel fragments that no longer exist.IPageLayout.ID_RES_NAV→ID_PROJECT_EXPLORER;setShowFastViewBarsremoved.pom-first.xmlof the target platform usespompackaging, because Tycho 5 otherwise resolves the.targetbefore the local p2 repository it refers to exists. The generated.targetis attached with build-helper, so it is still installed for single-module builds.Maven Wrapper
./mvnw/mvnw.cmdpin Maven 3.9.16 (with a SHA-256 checksum) for CI, Jenkins,build.sh/build.batand the README:apachedirectory/maven-buildimages ship Maven 3.9.6 or older, which is too old for Tycho 5.Invalid Collect Request: nullwhile resolving the bundles' dependencies), so the wrapper stays on the latest 3.9.x.ANTLR on Java 18+ (#114)
The
antlr-maven-plugintrapsSystem.exit()with aSecurityManager, which Java 18+ no longer allows, somasterdoes not build on Java 21. The parser is now generated byexec-maven-plugin(execgoal) runningantlr.Toolin a forked JVM, andbuild-helperadds the generated sources inpom-first.xml. Unlike #114, generated sources are not committed and nomainClassis needed.Libraries
Require-Bundlewere updated.jdk15on→jdk18on, plusbcutil).org.dom4j2.2.0 bundle replaces the ServiceMix bundle, whosejavax.xml.stream [1.0,2)import no longer resolves cleanly on Eclipse 4.41. It is mirrored into thedependenciesupdate site, so installing Studio into an Eclipse IDE still works.slf4j-nopis only used to resolve the target platform: it lives in a separate local repository and is not published in the update site. The bundles that importorg.slf4jnow use the range[1.7,1.8), so they wire to the same slf4j as the LDAP API and log throughslf4j-eclipselog.ExportXlsRunnableusesCellType; commons-math3, SparseBitSet and log4j-api are embedded next to it), xerces 2.11.0 → 2.12.2.serializerartifact, split out in 2.7.3), ant-apache-regexp 1.10.18.Versions that are held back on purpose:
org.slf4j [1.7,1.8).com.github.benmanes.caffeine.cache [2.7,3).[1.1,1.3).ApacheDS, LDAP API and MINA (#79, #60)
ApacheDS stays on 2.0.0.AM26, which ties LDAP API and MINA to their current lines:
StartTlsHandlerusesSslFilter.DISABLE_ENCRYPTION_ONCE, which MINA 2.2 removed (NoSuchFieldErroron every StartTLS request). It also usesNoVerificationTrustManager, which LDAP API 2.1.8 removed.AM27 (LDAP API 2.1.5, MINA 2.2) would lift this, but it cannot be used yet. In AM27, several bundles (
apacheds-interceptors-operational,apacheds-server-config,apacheds-xdbm-partition) useorg.apache.directory.api.ldap.model.schema.registrieswithout importing it in their OSGi manifest. The embedded server then fails withClassNotFoundException: ...ObjectClassRegistry. AM27 also drops the Kerberos protocol, which Studio's ApacheDS configuration editor still exposes. This should be fixed in ApacheDS first.UI tests
The SWTBot UI tests had not run in CI for a long time: the Jenkins pipeline fails earlier, in the core integration tests against 389ds (see "Jenkins test lab"). They now pass again:
%View_ServersView_name, which is "Servers" in English. That renamed the view and its category in the English UI. The English name is restored to "LDAP Servers" (German stays "Server" / "LDAP-Server").Window > Preferences..., and "New" as the title of the new wizard dialog.xvfb-run,dbus-run-sessionandmetacity, and upload the test reports and screenshots when the build fails.CI
Jenkins test lab
The last
masterbuilds failed in the core integration tests against 389ds. Fixes:zypperskipped every repository and the plugins were missing. The pipeline now imports the current key over HTTPS first and uses--replacefiles, because the current packages conflict with OpenSSL 1.1 in the389ds/dirsrv:2.2image (this also upgrades glibc and OpenSSL inside the container).noSuchObjectinstead of a referral, which breaks the referral tests (2.2 returns the referral).failed to init cipher '3des'(RC4 and DES work, on 2.2 and 3.1 alike). The exclusion names the reason and when to remove it.apachedirectory/maven-build:jdk-21is published for arm64 only and has no window manager. The pipeline buildstools/testlab/build-image(Temurin 21, GTK, Xvfb, metacity, dbus, krb5-user) and runs the build like the GitHub workflows.HOMEanduser.homepoint to/tmp/home, because the Jenkins user has no home directory in the image.Testing
Locally on Temurin 21.0.13 with the Maven Wrapper (Maven 3.9.16):
./mvnw -f pom-first.xml -U clean install, then./mvnw clean install -Denable-ui-testsin an Ubuntu 24.04 container withxvfb-run,dbus-run-sessionandmetacity(the same command as the GitHub workflows): BUILD SUCCESS, with product archives for Linux x86_64, macOS x86_64/aarch64 and Windows x86_64.OpenLdapAclParserTest).dependenciesupdate site containsorg.dom4jand noslf4j.nop. The generated manifests importorg.slf4j;version="[1.7,1.8)".slf4j-eclipselogattaches toslf4j.api1.7.36, and no errors are logged.mvn -Duserguides package -f helps/pom.xml(Maven 3.9.16): the five PDF user guides are generated with FOP 2.12. The DocBookdraft.pngwatermark is not loaded, because its http URL now redirects to https.Jenkinsfile) on one Docker network, and the build in thetools/testlab/build-imageimage with the caller's uid, the workspace path and the same environment and commands as theJenkinsfile: BUILD SUCCESS. Core integration tests 110 run, 0 failures, 1 skipped; UI tests 433 run, 0 failures, 8 skipped.Proposal: run the test lab in GitHub Actions too (follow-up)
The GitHub workflows in this PR run every test that needs no external servers. The tests against Kerby, OpenLDAP and 389ds (GSSAPI, DIGEST-MD5, referrals, 389ds and OpenLDAP specifics) are skipped there, so only Jenkins runs them. In the local Jenkins-like run they add 28 core tests and 49 UI tests.
The test lab is not part of this PR because:
masteror on a schedule.A possible follow-up:
Move the container setup from
inTestLabin theJenkinsfileinto one script, for exampletools/testlab/run-in-testlab.sh <command>, that both Jenkins and GitHub Actions call. The script would:coheigea/kerby,osixia/openldap:1.5.0and389ds/dirsrv:2.2with the same arguments as today, and wait until 389ds answersdscontainer -Hand the backend exists;tools/testlab/build-image;--link, krb5.conf andOPENLDAP_*/FEDORA_389DS_*settings.One definition keeps the two CI systems from drifting apart.
Add a job to
pull-request-build-openjdk21.yml, or a separate workflow forpushtomaster,scheduleandworkflow_dispatch, that calls the script with the samexvfb-run … metacity … ./mvnw clean install -Denable-ui-testscommand. Notes:services:containers cannot be used here: they start before the checkout, so they cannot mounttools/testlab/*, and they cannot override the 389ds command.HOMEanduser.homeset to/tmp/home, as in Jenkins. The Maven cache is restored into/tmp/home/.m2.Optionally, pin the openSUSE packages or build a small 389ds test image, so the SASL plugin install no longer depends on Tumbleweed.
The Jenkins-like run was reproduced locally (see "Testing"). A GitHub-hosted runner has not been tried.
Not verified
docker.buildandinsideon the ASF agents, and the Windows stage with thejava\latest21tool path.🤖 Generated with Claude Code