fix(deps): declare the Apache SSHD the SFTP transport imports #49

Merged
james.maes merged 1 commits from fix/declare-sshd into develop 2026-11-19 01:13:16 +00:00
Owner

What this changes

org.apache.sshd:sshd-sftp is declared in the pom (2.16.0, the version qqq-backend-module-filesystem uses).

Why

SftpTransport imports Apache MINA SSHD directly, but the artifact was not declared: it arrived only through qqq-backend-module-filesystem. A host that also gets that module from a dependency which excludes its SSH stack resolves the module once, without SSHD. qbit-object-storage is such a dependency (it excludes sshd-sftp: "Only the S3 factory is used; do not ship the SFTP backend's SSH stack").

Seen in an application that composes both: new EdiQBitProducer().withQBitConfig(...).produce(instance) throws java.lang.NoClassDefFoundError: org/apache/sshd/common/session/SessionContext at EdiQBitProducer.produce, the line that creates the SFTP transport.

Declaring what the code imports makes the qbit independent of how a host happens to get the filesystem module. No code change.

Checks run locally

./mvnw -B verify: 270 tests, 0 failures, Checkstyle 0. dependency:tree shows sshd-sftp as a direct dependency.

🤖 Generated with Claude Code

## What this changes `org.apache.sshd:sshd-sftp` is declared in the pom (2.16.0, the version `qqq-backend-module-filesystem` uses). ## Why `SftpTransport` imports Apache MINA SSHD directly, but the artifact was not declared: it arrived only through `qqq-backend-module-filesystem`. A host that also gets that module from a dependency which excludes its SSH stack resolves the module once, without SSHD. `qbit-object-storage` is such a dependency (it excludes `sshd-sftp`: "Only the S3 factory is used; do not ship the SFTP backend's SSH stack"). Seen in an application that composes both: `new EdiQBitProducer().withQBitConfig(...).produce(instance)` throws `java.lang.NoClassDefFoundError: org/apache/sshd/common/session/SessionContext` at `EdiQBitProducer.produce`, the line that creates the SFTP transport. Declaring what the code imports makes the qbit independent of how a host happens to get the filesystem module. No code change. ## Checks run locally `./mvnw -B verify`: 270 tests, 0 failures, Checkstyle 0. `dependency:tree` shows `sshd-sftp` as a direct dependency. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
james.maes added 1 commit 2026-11-19 01:04:31 +00:00
fix(deps): declare the Apache SSHD the SFTP transport imports
maven / build (push) Successful in 8m2s
build / maven (push) Successful in 8m2s
41562fd7f6
SftpTransport uses org.apache.sshd directly, but the artifact arrived only
through qqq-backend-module-filesystem. A host that also gets that module
from a dependency which excludes its SSH stack (qbit-object-storage does)
resolved it without SSHD, and EdiQBitProducer.produce failed with
NoClassDefFoundError: org/apache/sshd/common/session/SessionContext.

Tests: 270 run, 0 failures, Checkstyle 0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
james.maes merged commit 8fb5714cac into develop 2026-11-19 01:13:16 +00:00
Sign in to join this conversation.