This is an automated email from the ASF dual-hosted git repository.
cdeppisch pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.18.x by this push:
new 2bf329115a74 CAMEL-23157: Fix test plugin run command
2bf329115a74 is described below
commit 2bf329115a741843c7e42518a7e5b44fa02de19a
Author: Christoph Deppisch <[email protected]>
AuthorDate: Thu Mar 19 15:40:11 2026 +0100
CAMEL-23157: Fix test plugin run command
- Avoid test plugin to add test scoped dependencies to the Camel route
runtime
---
.../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
index 9727961632fb..218fa3e78743 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
@@ -999,7 +999,11 @@ public class Run extends CamelCommand {
.collect(Collectors.toSet());
for (PluginExporter exporter : exporters) {
-
addDependencies(exporter.getDependencies(runtime).toArray(String[]::new));
+ addDependencies(exporter.getDependencies(runtime)
+ .stream()
+ .filter(dependency ->
!dependency.startsWith("mvn@test")) // filter test scoped dependencies
+ .collect(Collectors.toSet())
+ .toArray(String[]::new));
}
}