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 2023/10/23 13:39:30 UTC
[camel] 01/02: CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 14bc8682a5e40fa3b400aed1f0c696d76e7c6569
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Oct 23 15:36:32 2023 +0200
CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools
---
.../src/main/resources/templates/jkube-profiles.tmpl | 2 --
.../src/main/resources/templates/main-pom.tmpl | 18 ++++++++++++++++++
.../src/main/resources/templates/quarkus-pom.tmpl | 16 ++++++++++++++++
.../src/main/resources/templates/spring-boot-pom.tmpl | 17 +++++++++++++++++
4 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/jkube-profiles.tmpl b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/jkube-profiles.tmpl
index b683f0db5ef..40bcd01f6a0 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/jkube-profiles.tmpl
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/jkube-profiles.tmpl
@@ -1,4 +1,3 @@
- <profiles>
<profile>
<id>kubernetes</id>
<build>
@@ -47,4 +46,3 @@
</plugins>
</build>
</profile>
- </profiles>
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/main-pom.tmpl b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/main-pom.tmpl
index 37be8f8f8dc..64c2452f4c6 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/main-pom.tmpl
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/main-pom.tmpl
@@ -129,4 +129,22 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>camel.debug</id>
+ <activation>
+ <property>
+ <name>camel.debug</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-debug</artifactId>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
</project>
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/quarkus-pom.tmpl b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/quarkus-pom.tmpl
index 8d2cc9fd645..7e984215b4d 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/quarkus-pom.tmpl
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/quarkus-pom.tmpl
@@ -140,5 +140,21 @@
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
+ <profile>
+ <id>camel.debug</id>
+ <activation>
+ <property>
+ <name>camel.debug</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-debug</artifactId>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
+
</project>
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/spring-boot-pom.tmpl b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/spring-boot-pom.tmpl
index 5250bf41e28..c203e48673a 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/spring-boot-pom.tmpl
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/spring-boot-pom.tmpl
@@ -79,6 +79,23 @@
</plugins>
</build>
+ <profiles>
{{ .jkubeProfiles }}
+ <profile>
+ <id>camel.debug</id>
+ <activation>
+ <property>
+ <name>camel.debug</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.springboot</groupId>
+ <artifactId>camel-debug-starter</artifactId>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
</project>