You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2026/04/28 13:40:58 UTC
(camel-quarkus) branch main updated: Fixes #8445. Review and update mina-sftp native support for Camel 4.20
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 462fb86c63 Fixes #8445. Review and update mina-sftp native support for Camel 4.20
462fb86c63 is described below
commit 462fb86c63bd993e056911d3f712517bd4cb03f6
Author: Jomin <30...@users.noreply.github.com>
AuthorDate: Tue Apr 28 14:40:53 2026 +0100
Fixes #8445. Review and update mina-sftp native support for Camel 4.20
Co-authored-by: jomin mathew <>
---
extensions/mina-sftp/deployment/pom.xml | 4 ----
.../mina/sftp/deployment/MinaSftpProcessor.java | 19 +------------------
extensions/mina-sftp/runtime/pom.xml | 13 -------------
3 files changed, 1 insertion(+), 35 deletions(-)
diff --git a/extensions/mina-sftp/deployment/pom.xml b/extensions/mina-sftp/deployment/pom.xml
index 44996bfe20..a32b7f93af 100644
--- a/extensions/mina-sftp/deployment/pom.xml
+++ b/extensions/mina-sftp/deployment/pom.xml
@@ -46,10 +46,6 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-support-bouncycastle-deployment</artifactId>
</dependency>
- <dependency>
- <groupId>io.quarkiverse.jsch</groupId>
- <artifactId>quarkus-jsch-deployment</artifactId>
- </dependency>
</dependencies>
<build>
diff --git a/extensions/mina-sftp/deployment/src/main/java/org/apache/camel/quarkus/component/mina/sftp/deployment/MinaSftpProcessor.java b/extensions/mina-sftp/deployment/src/main/java/org/apache/camel/quarkus/component/mina/sftp/deployment/MinaSftpProcessor.java
index 8e68d77530..a7d7fdf775 100644
--- a/extensions/mina-sftp/deployment/src/main/java/org/apache/camel/quarkus/component/mina/sftp/deployment/MinaSftpProcessor.java
+++ b/extensions/mina-sftp/deployment/src/main/java/org/apache/camel/quarkus/component/mina/sftp/deployment/MinaSftpProcessor.java
@@ -24,8 +24,6 @@ import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.RemovedResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
import io.quarkus.maven.dependency.ArtifactKey;
-import org.apache.camel.quarkus.core.deployment.spi.CamelServiceFilter;
-import org.apache.camel.quarkus.core.deployment.spi.CamelServiceFilterBuildItem;
class MinaSftpProcessor {
@@ -36,14 +34,6 @@ class MinaSftpProcessor {
return new FeatureBuildItem(FEATURE);
}
- @BuildStep
- void filterFtpComponents(BuildProducer<CamelServiceFilterBuildItem> serviceFilter) {
- // camel-mina-sftp depends on camel-ftp only for shared base classes (RemoteFileEndpoint, etc.)
- serviceFilter.produce(new CamelServiceFilterBuildItem(CamelServiceFilter.forComponent("ftp")));
- serviceFilter.produce(new CamelServiceFilterBuildItem(CamelServiceFilter.forComponent("ftps")));
- serviceFilter.produce(new CamelServiceFilterBuildItem(CamelServiceFilter.forComponent("sftp")));
- }
-
@BuildStep
RemovedResourceBuildItem removeFileSystemProviderService() {
// Remove the FileSystemProvider service file from sshd-sftp to prevent ServiceLoader
@@ -55,14 +45,7 @@ class MinaSftpProcessor {
@BuildStep
void runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClass) {
- // FTP/FTPS/SFTP endpoint classes are still on the classpath (from camel-ftp)
- runtimeInitializedClass
- .produce(new RuntimeInitializedClassBuildItem("org.apache.camel.component.file.remote.FtpEndpoint"));
- runtimeInitializedClass
- .produce(new RuntimeInitializedClassBuildItem("org.apache.camel.component.file.remote.FtpsEndpoint"));
- runtimeInitializedClass
- .produce(new RuntimeInitializedClassBuildItem("org.apache.camel.component.file.remote.SftpEndpoint"));
-
+ // MinaSftpOperations has Pattern static fields that should be initialized at runtime
runtimeInitializedClass
.produce(
new RuntimeInitializedClassBuildItem("org.apache.camel.component.file.remote.mina.MinaSftpOperations"));
diff --git a/extensions/mina-sftp/runtime/pom.xml b/extensions/mina-sftp/runtime/pom.xml
index ecd5a5e423..c1e86324f3 100644
--- a/extensions/mina-sftp/runtime/pom.xml
+++ b/extensions/mina-sftp/runtime/pom.xml
@@ -52,19 +52,6 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-support-bouncycastle</artifactId>
</dependency>
- <!-- Use quarkus-jsch for proper GraalVM configuration -->
- <dependency>
- <groupId>io.quarkiverse.jsch</groupId>
- <artifactId>quarkus-jsch</artifactId>
- </dependency>
-
- <!-- commons-net is excluded by camel-mina-sftp from camel-ftp, but needed for native image build
- to allow GraalVM to analyze FTP/FTPS endpoint classes. Clean after https://issues.apache.org/jira/browse/CAMEL-23164 -->
- <dependency>
- <groupId>commons-net</groupId>
- <artifactId>commons-net</artifactId>
- </dependency>
-
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>nativeimage</artifactId>