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 2021/05/24 19:11:12 UTC

[camel-examples] 02/03: Rename example

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-examples.git

commit ff74eaa17622af968589b738ecb4159ed69adfdb
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon May 24 21:06:41 2021 +0200

    Rename example
---
 examples/{kamelet-yaml => kamelet-main}/README.adoc            |  5 +----
 examples/{kamelet-yaml => kamelet-main}/pom.xml                | 10 +++-------
 .../src/main/resources/application.properties                  |  0
 .../src/main/resources/camel/my-route.yaml                     |  0
 .../src/main/resources/logback.xml                             |  0
 examples/pom.xml                                               |  2 +-
 6 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/examples/kamelet-yaml/README.adoc b/examples/kamelet-main/README.adoc
similarity index 86%
rename from examples/kamelet-yaml/README.adoc
rename to examples/kamelet-main/README.adoc
index 7df15c5..867f100 100644
--- a/examples/kamelet-yaml/README.adoc
+++ b/examples/kamelet-main/README.adoc
@@ -1,4 +1,4 @@
-== Camel Example Kamelet YAML
+== Camel Example Kamelet Main
 
 === Introduction
 
@@ -10,9 +10,6 @@ This makes it easy to run Camel standalone with Kamelet that can be automatic
 downloaded from github, and to use YAML DSL for creating Camel routes that use the Kamelets.
 The example has no Java code at all.
 
-Before the Kamelet is ready to use, we must add the needed Camel components
-(you can find the list inside the kamelet YAML file) to the Maven `pom.xml` file.
-
 A Camel routes is _coded_ in the `my-route.yaml` file using the YAML DSL that uses the Kamelet,
 and log the result from the Kamelet to the console.
 
diff --git a/examples/kamelet-yaml/pom.xml b/examples/kamelet-main/pom.xml
similarity index 93%
rename from examples/kamelet-yaml/pom.xml
rename to examples/kamelet-main/pom.xml
index 00e840f..dea5fe0 100644
--- a/examples/kamelet-yaml/pom.xml
+++ b/examples/kamelet-main/pom.xml
@@ -28,10 +28,10 @@
         <version>3.11.0-SNAPSHOT</version>
     </parent>
 
-    <artifactId>camel-example-kamelet-yaml</artifactId>
+    <artifactId>camel-example-kamelet-main</artifactId>
     <packaging>jar</packaging>
-    <name>Camel :: Example :: Kamelet YAML</name>
-    <description>How to use Kamelets with YAML DSL</description>
+    <name>Camel :: Example :: Kamelet Main</name>
+    <description>How to easily run Kamelets</description>
 
     <properties>
         <category>Beginner</category>
@@ -58,10 +58,6 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-kamelet-main</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-jackson</artifactId>
-        </dependency>
 
         <!-- logging -->
         <dependency>
diff --git a/examples/kamelet-yaml/src/main/resources/application.properties b/examples/kamelet-main/src/main/resources/application.properties
similarity index 100%
rename from examples/kamelet-yaml/src/main/resources/application.properties
rename to examples/kamelet-main/src/main/resources/application.properties
diff --git a/examples/kamelet-yaml/src/main/resources/camel/my-route.yaml b/examples/kamelet-main/src/main/resources/camel/my-route.yaml
similarity index 100%
rename from examples/kamelet-yaml/src/main/resources/camel/my-route.yaml
rename to examples/kamelet-main/src/main/resources/camel/my-route.yaml
diff --git a/examples/kamelet-yaml/src/main/resources/logback.xml b/examples/kamelet-main/src/main/resources/logback.xml
similarity index 100%
rename from examples/kamelet-yaml/src/main/resources/logback.xml
rename to examples/kamelet-main/src/main/resources/logback.xml
diff --git a/examples/pom.xml b/examples/pom.xml
index 6b1be8c..ac1ea76 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -123,7 +123,7 @@
         <module>jooq</module>
         <module>kafka</module>
         <module>kamelet</module>
-        <module>kamelet-yaml</module>
+        <module>kamelet-main</module>
         <module>kotlin</module>
         <module>loan-broker-cxf</module>
         <module>loadbalancing</module>