You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by kl...@apache.org on 2022/11/09 22:48:55 UTC

[camel-karaf-examples] 01/01: CAMEL-18664: fix build and examples to run in karaf Filter the resources to replace placeholders. Upgrade chucknorris example yaml syntax. Remove unnecessary osgi package in artemis-amqp example.

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

klease pushed a commit to branch CAMEL-18664
in repository https://gitbox.apache.org/repos/asf/camel-karaf-examples.git

commit c0424b79ce4d508a389ca2ce0ad423f706f15cdd
Author: klease <kl...@cegetel.net>
AuthorDate: Wed Nov 9 23:45:24 2022 +0100

    CAMEL-18664: fix build and examples to run in karaf
    Filter the resources to replace placeholders.
    Upgrade chucknorris example yaml syntax.
    Remove unnecessary osgi package in artemis-amqp example.
---
 examples/camel-example-artemis-amqp-blueprint/pom.xml               | 3 ---
 .../src/main/resources/kamelets/chuck-norris-source.kamelet.yaml    | 2 +-
 examples/pom.xml                                                    | 6 ++++++
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/examples/camel-example-artemis-amqp-blueprint/pom.xml b/examples/camel-example-artemis-amqp-blueprint/pom.xml
index 9bedc1d..221ee2b 100644
--- a/examples/camel-example-artemis-amqp-blueprint/pom.xml
+++ b/examples/camel-example-artemis-amqp-blueprint/pom.xml
@@ -35,9 +35,6 @@
 
     <properties>
         <category>Messaging</category>
-        <camel.osgi.import.additional>
-            org.apache.qpid.*;version="[0.20,1)",
-        </camel.osgi.import.additional>
     </properties>
 
     <dependencyManagement>
diff --git a/examples/camel-example-kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml b/examples/camel-example-kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
index b47dde7..72346d7 100644
--- a/examples/camel-example-kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
+++ b/examples/camel-example-kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
@@ -30,7 +30,7 @@ spec:
     - "camel:timer"
     - "camel:http"
     - "camel:jsonpath"
-  flow:
+  template:
     from:
       uri: "timer:chuck"
       parameters:
diff --git a/examples/pom.xml b/examples/pom.xml
index 05a0648..b47490a 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -207,6 +207,12 @@
     </pluginRepositories>
 
     <build>
+       <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>