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:29 UTC

[camel] branch main updated (49d0990302b -> 2061fb49fc4)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from 49d0990302b CAMEL-20032: camel-yaml-dsl - Choice should not have steps in schema (#11813)
     new 14bc8682a5e CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools
     new 2061fb49fc4 CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/user-manual/modules/ROOT/pages/camel-jbang.adoc   |  3 +++
 .../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 +++++++++++++++++
 5 files changed, 54 insertions(+), 2 deletions(-)


[camel] 01/02: CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools

Posted by da...@apache.org.
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>


[camel] 02/02: CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools

Posted by da...@apache.org.
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 2061fb49fc45a25e503a3cb969790b53e991107e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Oct 23 15:39:20 2023 +0200

    CAMEL-19437: camel-jbang - Export should include maven profile to include camel-debug for remote debugging from IDE tools
---
 docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 3b5f07b7595..3316f00ccb0 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -1887,6 +1887,9 @@ You can then use the Integrated Development Environment (IDE) of your choice. Fo
 
 A specific how-to is available for VS Code, see this https://youtu.be/owNhWxf42qk[video] or this /blog/2022/05/start-camel-quarkus-application-with-camel-textual-debug-in-vscode/[blogpost].
 
+TIP: When exporting to Maven projects, then you can use the maven profile `camel.debug` that will include the `camel-debug` JAR
+to make it possible for Camel IDE tools to do Camel route debugging.
+
 ==== Health Checks
 
 The status of health checks can be accessed via Camel JBang from the CLI as follows: