You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/07/24 05:42:21 UTC
(camel) 01/02: CAMEL-24247: camel-jbang - Fix duplicate camel-micrometer-prometheus in exported pom.xml
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch backport/25035-to-camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0d8f6949c0bf2a895bc68dc747a82a753122c2fa
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jul 22 22:52:56 2026 +0200
CAMEL-24247: camel-jbang - Fix duplicate camel-micrometer-prometheus in exported pom.xml
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
.../java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
index 9923c85666b7..2ca7992d40da 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
@@ -365,6 +365,9 @@ class ExportCamelMain extends Export {
answer.removeIf(s -> s.contains("camel-core"));
answer.removeIf(s -> s.contains("camel-main"));
answer.removeIf(s -> s.contains("camel-health"));
+ answer.removeIf(s -> s.contains("camel-micrometer-prometheus"));
+ // spring-boot-starter JARs are not usable in camel-main runtime
+ answer.removeIf(s -> s.contains("spring-boot-starter"));
if (profile != null && Files.exists(profile)) {
Properties prop = new CamelCaseOrderedProperties();