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

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4881e  Archetypes: Aligned camel-archetype-java8
dc4881e is described below

commit dc4881e9daec2a981178412e75298cb90c19cf8e
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu May 21 16:56:44 2020 +0200

    Archetypes: Aligned camel-archetype-java8
---
 .../src/main/resources/archetype-resources/pom.xml                 | 7 +++++++
 .../main/resources/archetype-resources/src/main/java/MainApp.java  | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/pom.xml
 
b/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/pom.xml
index 809c80c..89081ca 100644
--- 
a/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/pom.xml
+++ 
b/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/pom.xml
@@ -37,6 +37,13 @@
       <!-- Camel BOM -->
       <dependency>
         <groupId>org.apache.camel</groupId>
+        <artifactId>camel-bom</artifactId>
+        <version>${camel-version}</version>
+        <scope>import</scope>
+        <type>pom</type>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
         <artifactId>camel-parent</artifactId>
         <version>${camel-version}</version>
         <scope>import</scope>
diff --git 
a/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/src/main/java/MainApp.java
 
b/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/src/main/java/MainApp.java
index 83ab1d1..af73795 100644
--- 
a/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/src/main/java/MainApp.java
+++ 
b/archetypes/camel-archetype-java8/src/main/resources/archetype-resources/src/main/java/MainApp.java
@@ -28,7 +28,7 @@ public class MainApp {
      */
     public static void main(String... args) throws Exception {
         Main main = new Main();
-        main.addRouteBuilder(new MyRouteBuilder());
+        main.configure().addRoutesBuilder(new MyRouteBuilder());
         main.run(args);
     }
 }

Reply via email to