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 be0aef3  Reduce the number of examples to maintain
be0aef3 is described below

commit be0aef3fca2369606698ef47b8a923b91a3ed41f
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Feb 5 19:17:24 2022 +0100

    Reduce the number of examples to maintain
---
 examples/README.adoc                               |   4 +-
 .../main-endpointdsl-google-pubsub/README.adoc     |  44 ---------
 examples/main-endpointdsl-google-pubsub/pom.xml    | 106 ---------------------
 .../org/apache/camel/example/MyApplication.java    |  38 --------
 .../org/apache/camel/example/MyRouteBuilder.java   |  37 -------
 .../src/main/resources/application.properties      |  39 --------
 .../src/main/resources/logback.xml                 |  30 ------
 examples/pom.xml                                   |   1 -
 8 files changed, 1 insertion(+), 298 deletions(-)

diff --git a/examples/README.adoc b/examples/README.adoc
index 3f628e3..e5c0b8a 100644
--- a/examples/README.adoc
+++ b/examples/README.adoc
@@ -11,7 +11,7 @@ View the individual example READMEs for details.
 == Examples
 
 // examples: START
-Number of Examples: 84 (0 deprecated)
+Number of Examples: 83 (0 deprecated)
 
 [width="100%",cols="4,2,4",options="header"]
 |===
@@ -59,8 +59,6 @@ Number of Examples: 84 (0 deprecated)
 
 | link:main-endpointdsl-aws2-s3-kafka/README.adoc[Main Endpointdsl Aws2 S3 
Kafka] (main-endpointdsl-aws2-s3-kafka) | Beginner | An example for showing 
standalone Camel with Endpoint DSL and AWS2-S3 and Kafka
 
-| link:main-endpointdsl-google-pubsub/README.adoc[Main Endpointdsl Google 
Pubsub] (main-endpointdsl-google-pubsub) | Beginner | An example for showing 
standalone Camel with Endpoint DSL and Google Pubsub component
-
 | link:main-endpointdsl-kafka-aws2-s3/README.adoc[Main Endpointdsl Kafka Aws2 
S3] (main-endpointdsl-kafka-aws2-s3) | Beginner | An example for showing 
standalone Camel with Endpoint DSL and Kafka and AWS2 S3
 
 | link:main-endpointdsl-kafka-aws2-s3-restarting-policy/README.adoc[Main 
Endpointdsl Kafka Aws2 S3 Restarting Policy] 
(main-endpointdsl-kafka-aws2-s3-restarting-policy) | Beginner | An example for 
showing standalone Camel with Endpoint DSL and Kafka, AWS2-S3 streaming upload 
mode with restarting policy
diff --git a/examples/main-endpointdsl-google-pubsub/README.adoc 
b/examples/main-endpointdsl-google-pubsub/README.adoc
deleted file mode 100644
index 3f34b9d..0000000
--- a/examples/main-endpointdsl-google-pubsub/README.adoc
+++ /dev/null
@@ -1,44 +0,0 @@
-== Camel Example Google PubSub Endpoint DSL
-
-This example shows how to use the endpoint DSL in your Camel routes
-to define endpoints using type safe fluent builders, which are Java methods
-that are compiled.
-
-Notice how you can configure Camel in the `application.properties` file.
-
-=== Setting up the google pubsub topic
-
-- You'll need to
- - Create a project and save the projectId
- - Create a topic and save the name
- - Create a subscription to that topic and save the subscription name
-
-- Update the application.properties accordingly
-
-=== Build
-
-First compile the example by executing:
-
-[source,sh]
-----
-$ mvn compile
-----
-
-=== How to run
-
-You can run this example using
-
-[source,sh]
-----
-$ mvn camel:run
-----
-
-=== Help and contributions
-
-If you hit any problem using Camel or have some feedback, then please
-https://camel.apache.org/community/support/[let us know].
-
-We also love contributors, so
-https://camel.apache.org/community/contributing/[get involved] :-)
-
-The Camel riders!
diff --git a/examples/main-endpointdsl-google-pubsub/pom.xml 
b/examples/main-endpointdsl-google-pubsub/pom.xml
deleted file mode 100644
index 20d9ce1..0000000
--- a/examples/main-endpointdsl-google-pubsub/pom.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-
-    <modelVersion>4.0.0</modelVersion>
-
-    <parent>
-        <groupId>org.apache.camel.example</groupId>
-        <artifactId>examples</artifactId>
-        <version>3.16.0-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>camel-example-main-endpointdsl-google-pubsub</artifactId>
-    <packaging>jar</packaging>
-    <name>Camel :: Example :: Main :: Endpoint DSL :: Google Pubsub</name>
-    <description>An example for showing standalone Camel with Endpoint DSL and 
Google Pubsub component</description>
-
-    <properties>
-        <category>Beginner</category>
-    </properties>
-
-    <dependencyManagement>
-        <dependencies>
-            <!-- Add Camel BOM -->
-            <dependency>
-                <groupId>org.apache.camel</groupId>
-                <artifactId>camel-bom</artifactId>
-                <version>${camel.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-main</artifactId>
-        </dependency>
-        <!-- we use the endpoint-dsl -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-endpointdsl</artifactId>
-        </dependency>
-        <!-- we use these 2 camel components in this example -->
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-google-pubsub</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-log</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-timer</artifactId>
-        </dependency>
-
-        <!-- logging -->
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${logback-version}</version>
-        </dependency>
-
-    </dependencies>
-
-    <build>
-        <plugins>
-            <!-- to run the application -->
-            <plugin>
-                <groupId>org.apache.camel</groupId>
-                <artifactId>camel-maven-plugin</artifactId>
-                <version>${camel.version}</version>
-                <configuration>
-                    
<mainClass>org.apache.camel.example.MyApplication</mainClass>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-</project>
diff --git 
a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java
 
b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java
deleted file mode 100644
index 496b37d..0000000
--- 
a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.main.Main;
-
-/**
- * Main class that boot the Camel application
- */
-public final class MyApplication {
-
-    private MyApplication() {
-    }
-
-    public static void main(String[] args) throws Exception {
-        // use Camels Main class
-        Main main = new Main();
-        // and add the routes (you can specify multiple classes)
-        main.configure().addRoutesBuilder(MyRouteBuilder.class);
-        // now keep the application running until the JVM is terminated (ctrl 
+ c or sigterm)
-        main.run(args);
-    }
-
-}
diff --git 
a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java
 
b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java
deleted file mode 100644
index d6c6912..0000000
--- 
a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.endpoint.EndpointRouteBuilder;
-
-/**
- * To use the endpoint DSL then we must extend EndpointRouteBuilder instead of 
RouteBuilder
- */
-public class MyRouteBuilder extends EndpointRouteBuilder {
-
-    @Override
-    public void configure() throws Exception {
-        // the endpoint-dsl allows to define endpoints in type safe fluent 
builders
-        // here we configure the time and bean endpoint
-
-        from(timer("tick").repeatCount(5)).setBody(constant("Test"))
-            
.to(googlePubsub("{{pubsubProjectId}}:{{pubsubTopicName}}")).startupOrder(2);
-        
-        
from(googlePubsub("{{pubsubProjectId}}:{{pubsubSubscriptionName}}").synchronousPull(true))
-            .log("From Pubsub Subscription: ${body}").startupOrder(1);
-    }
-}
diff --git 
a/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties
 
b/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties
deleted file mode 100644
index 1eac0d5..0000000
--- 
a/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties
+++ /dev/null
@@ -1,39 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements.  See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License.  You may obtain a copy of the License at
-##
-##      http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# to configure camel main
-# here you can configure options on camel main (see 
MainConfigurationProperties class)
-camel.main.name = Camel-google-pubsub
-
-# enable tracing
-### camel.main.tracing = true
-
-# you can also configure camel context directly
-# camel.context.shutdown-strategy.shutdown-now-on-timeout = false
-
-# you can configure whether OS environment should override (=2 which is 
default) or as fallback (=1)
-### camel.component.properties.environment-variable-mode=1
-
-# properties used in the route
-myPeriod = 1000
-camel.component.google.pubsub.serviceAccounKey= <serviceAccountKey>
-pubsubProjectId = <projectId>
-pubsubTopicName = <topicName>
-pubsubSubscriptionName = <subscriptionName>
-
-
-
diff --git 
a/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml 
b/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml
deleted file mode 100644
index a798d0b..0000000
--- a/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<configuration>
-    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
-        <encoder>
-            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
-        </encoder>
-    </appender>
-
-    <root level="INFO">
-        <appender-ref ref="STDOUT" />
-    </root>
-</configuration>
diff --git a/examples/pom.xml b/examples/pom.xml
index dbb0710..b4bffe3 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -125,7 +125,6 @@
         <module>main</module>
         <module>main-artemis</module>
         <module>main-endpointdsl</module>
-        <module>main-endpointdsl-google-pubsub</module>
         <module>main-health</module>
         <module>main-joor</module>
         <module>main-lambda</module>

Reply via email to