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


The following commit(s) were added to refs/heads/main by this push:
     new 470d652  Use camel-kamelet-main to boostrap camel
470d652 is described below

commit 470d652d7de69a5e8ef7a06754f2f332b3e77a60
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri May 21 17:13:04 2021 +0200

    Use camel-kamelet-main to boostrap camel
---
 examples/kamelet-yaml/pom.xml                      | 26 ++++------------------
 .../src/main/resources/application.properties      |  9 --------
 2 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/examples/kamelet-yaml/pom.xml b/examples/kamelet-yaml/pom.xml
index 785e559..3dd8b6e 100644
--- a/examples/kamelet-yaml/pom.xml
+++ b/examples/kamelet-yaml/pom.xml
@@ -52,28 +52,10 @@
 
     <dependencies>
 
+        <!-- easy way to boostrap and run Kamelet in standalone mode -->
         <dependency>
             <groupId>org.apache.camel</groupId>
-            <artifactId>camel-core</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-main</artifactId>
-        </dependency>
-        <!-- use YAML DSL for defining Camel routes -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-yaml-dsl</artifactId>
-        </dependency>
-        <!-- Kamelet support -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-kamelet</artifactId>
-        </dependency>
-        <!-- to automatic download kamelet from github -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-resourceresolver-github</artifactId>
+            <artifactId>camel-kamelet-main</artifactId>
         </dependency>
 
         <!-- earthquake-source Kamelet dependencies that is manually added -->
@@ -127,7 +109,7 @@
                 <version>${camel.version}</version>
                 <configuration>
                     <logClasspath>false</logClasspath>
-                    <mainClass>org.apache.camel.main.Main</mainClass>
+                    <mainClass>org.apache.camel.main.KameletMain</mainClass>
                 </configuration>
                 <executions>
                     <execution>
@@ -148,7 +130,7 @@
                     </descriptorRefs>
                     <archive>
                         <manifest>
-                            <mainClass>org.apache.camel.main.Main</mainClass>
+                            
<mainClass>org.apache.camel.main.KameletMain</mainClass>
                         </manifest>
                     </archive>
                 </configuration>
diff --git a/examples/kamelet-yaml/src/main/resources/application.properties 
b/examples/kamelet-yaml/src/main/resources/application.properties
index 7360bd7..06e7672 100644
--- a/examples/kamelet-yaml/src/main/resources/application.properties
+++ b/examples/kamelet-yaml/src/main/resources/application.properties
@@ -18,13 +18,4 @@
 # to configure camel main
 camel.main.name = MyEarthQuake
 
-# load kamelet online from github from the official Apache Camel Kamelet 
Catalog
-camel.component.kamelet.location=github:apache:camel-kamelets
-
-# load the Camel routes from this folder
-camel.main.routes-include-pattern = classpath:camel/*
-
-# turn on lightweight mode
-camel.main.lightweight = true
-
 

Reply via email to