You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/08/27 20:48:37 UTC

[camel-quarkus] 03/05: Guava EventBus JVM support

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

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

commit c9a8b4f5bbb77454ff374568c919af73ef6b05d8
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Thu Aug 27 14:23:07 2020 +0200

    Guava EventBus JVM support
---
 catalog/pom.xml                                    |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 docs/modules/ROOT/pages/reference/components.adoc  |  3 +
 .../pages/reference/extensions/guava-eventbus.adoc | 29 +++++++
 docs/modules/ROOT/pages/reference/index.adoc       |  3 +
 extensions-jvm/guava-eventbus/deployment/pom.xml   | 63 ++++++++++++++
 .../deployment/GuavaEventbusProcessor.java         | 46 +++++++++++
 .../guava-eventbus/integration-test/pom.xml        | 95 ++++++++++++++++++++++
 .../guava/eventbus/it/GuavaEventbusResource.java   | 51 ++++++++++++
 .../guava/eventbus/it/GuavaEventbusTest.java       | 34 ++++++++
 extensions-jvm/guava-eventbus/pom.xml              | 40 +++++++++
 extensions-jvm/guava-eventbus/runtime/pom.xml      | 94 +++++++++++++++++++++
 .../main/resources/META-INF/quarkus-extension.yaml | 32 ++++++++
 extensions-jvm/pom.xml                             |  1 +
 poms/bom/pom.xml                                   | 15 ++++
 15 files changed, 508 insertions(+)

diff --git a/catalog/pom.xml b/catalog/pom.xml
index f0a9ae0..a412165 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -154,6 +154,7 @@
             camel-quarkus-groovy
             camel-quarkus-grpc
             camel-quarkus-gson
+            camel-quarkus-guava-eventbus
             camel-quarkus-http
             camel-quarkus-http-common
             camel-quarkus-hystrix
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 57493b2..179ebb7 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -130,6 +130,7 @@
 *** xref:reference/extensions/grok.adoc[Grok]
 *** xref:reference/extensions/groovy.adoc[Groovy]
 *** xref:reference/extensions/grpc.adoc[gRPC]
+*** xref:reference/extensions/guava-eventbus.adoc[Guava EventBus]
 *** xref:reference/extensions/http.adoc[HTTP]
 *** xref:reference/extensions/hystrix.adoc[Hystrix]
 *** xref:reference/extensions/ical.adoc[iCal]
diff --git a/docs/modules/ROOT/pages/reference/components.adoc b/docs/modules/ROOT/pages/reference/components.adoc
index 3ea89f6..2320d17 100644
--- a/docs/modules/ROOT/pages/reference/components.adoc
+++ b/docs/modules/ROOT/pages/reference/components.adoc
@@ -373,6 +373,9 @@ Stable | 1.0.0 | Send GraphQL queries and mutations to external systems.
 | xref:reference/extensions/grpc.adoc[gRPC] | [.camel-element-artifact]##camel-quarkus-grpc## | [.camel-element-JVM]##JVM## +
 Preview | 1.0.0 | Expose gRPC endpoints and access external gRPC endpoints.
 
+| xref:reference/extensions/guava-eventbus.adoc[Guava EventBus] | [.camel-element-artifact]##camel-quarkus-guava-eventbus## | [.camel-element-JVM]##JVM## +
+Preview | 1.1.0 | Send and receive messages to/from Guava EventBus.
+
 | xref:reference/extensions/http.adoc[HTTP] | [.camel-element-artifact]##camel-quarkus-http## | [.camel-element-Native]##Native## +
 Stable | 1.0.0 | Send requests to external HTTP servers using Apache HTTP Client 4.x.
 
diff --git a/docs/modules/ROOT/pages/reference/extensions/guava-eventbus.adoc b/docs/modules/ROOT/pages/reference/extensions/guava-eventbus.adoc
new file mode 100644
index 0000000..ee07906
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/guava-eventbus.adoc
@@ -0,0 +1,29 @@
+// Do not edit directly!
+// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
+
+[[guava-eventbus]]
+= Guava EventBus
+:page-aliases: extensions/guava-eventbus.adoc
+
+[.badges]
+[.badge-key]##Since Camel Quarkus##[.badge-version]##1.1.0## [.badge-key]##JVM##[.badge-supported]##supported## [.badge-key]##Native##[.badge-unsupported]##unsupported##
+
+Send and receive messages to/from Guava EventBus.
+
+== What's inside
+
+* https://camel.apache.org/components/latest/guava-eventbus-component.html[Guava EventBus component], URI syntax: `guava-eventbus:eventBusRef`
+
+Please refer to the above link for usage and configuration details.
+
+== Maven coordinates
+
+[source,xml]
+----
+<dependency>
+    <groupId>org.apache.camel.quarkus</groupId>
+    <artifactId>camel-quarkus-guava-eventbus</artifactId>
+</dependency>
+----
+
+Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
diff --git a/docs/modules/ROOT/pages/reference/index.adoc b/docs/modules/ROOT/pages/reference/index.adoc
index f1de58b..104d98c 100644
--- a/docs/modules/ROOT/pages/reference/index.adoc
+++ b/docs/modules/ROOT/pages/reference/index.adoc
@@ -368,6 +368,9 @@ Preview | 1.0.0 | Evaluate a Groovy script.
 |  xref:reference/extensions/grpc.adoc[gRPC]  | camel-quarkus-grpc | [.camel-element-JVM]##JVM## +
 Preview | 1.0.0 | Expose gRPC endpoints and access external gRPC endpoints.
 
+|  xref:reference/extensions/guava-eventbus.adoc[Guava EventBus]  | camel-quarkus-guava-eventbus | [.camel-element-JVM]##JVM## +
+Preview | 1.1.0 | Send and receive messages to/from Guava EventBus.
+
 |  xref:reference/extensions/http.adoc[HTTP]  | camel-quarkus-http | [.camel-element-Native]##Native## +
 Stable | 1.0.0 | Send requests to external HTTP servers using Apache HTTP Client 4.x.
 
diff --git a/extensions-jvm/guava-eventbus/deployment/pom.xml b/extensions-jvm/guava-eventbus/deployment/pom.xml
new file mode 100644
index 0000000..e3941cb
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/deployment/pom.xml
@@ -0,0 +1,63 @@
+<?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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-guava-eventbus-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-guava-eventbus-deployment</artifactId>
+    <name>Camel Quarkus :: Guava EventBus :: Deployment</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core-deployment</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-guava-eventbus</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java b/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java
new file mode 100644
index 0000000..9b98b45
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/deployment/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/deployment/GuavaEventbusProcessor.java
@@ -0,0 +1,46 @@
+/*
+ * 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.quarkus.component.guava.eventbus.deployment;
+
+import io.quarkus.deployment.annotations.BuildStep;
+import io.quarkus.deployment.annotations.ExecutionTime;
+import io.quarkus.deployment.annotations.Record;
+import io.quarkus.deployment.builditem.FeatureBuildItem;
+import io.quarkus.deployment.pkg.steps.NativeBuild;
+import org.apache.camel.quarkus.core.JvmOnlyRecorder;
+import org.jboss.logging.Logger;
+
+class GuavaEventbusProcessor {
+
+    private static final Logger LOG = Logger.getLogger(GuavaEventbusProcessor.class);
+    private static final String FEATURE = "camel-guava-eventbus";
+
+    @BuildStep
+    FeatureBuildItem feature() {
+        return new FeatureBuildItem(FEATURE);
+    }
+
+    /**
+     * Remove this once this extension starts supporting the native mode.
+     */
+    @BuildStep(onlyIf = NativeBuild.class)
+    @Record(value = ExecutionTime.RUNTIME_INIT)
+    void warnJvmInNative(JvmOnlyRecorder recorder) {
+        JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time
+        recorder.warnJvmInNative(FEATURE); // warn at runtime
+    }
+}
diff --git a/extensions-jvm/guava-eventbus/integration-test/pom.xml b/extensions-jvm/guava-eventbus/integration-test/pom.xml
new file mode 100644
index 0000000..d5c9c92
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/integration-test/pom.xml
@@ -0,0 +1,95 @@
+<?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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-build-parent-it</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-guava-eventbus-integration-test</artifactId>
+    <name>Camel Quarkus :: Guava EventBus :: Integration Test</name>
+    <description>Integration tests for Camel Quarkus Guava EventBus extension</description>
+
+    <properties>
+        <!-- mvnd, a.k.a. Maven Daemon: https://github.com/mvndaemon/mvnd -->
+        <!-- The following rule tells mvnd to build the listed deployment modules before this module. -->
+        <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not -->
+        <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
+        <!-- Please update the rule whenever you change the dependencies of this module by running -->
+        <!--     mvn process-resources -Pformat    from the root directory -->
+        <mvnd.builder.rule>camel-quarkus-guava-eventbus-deployment,camel-quarkus-support-policy-deployment</mvnd.builder.rule>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom-test</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-guava-eventbus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-resteasy</artifactId>
+        </dependency>
+
+        <!-- test dependencies -->
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.rest-assured</groupId>
+            <artifactId>rest-assured</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/extensions-jvm/guava-eventbus/integration-test/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusResource.java b/extensions-jvm/guava-eventbus/integration-test/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusResource.java
new file mode 100644
index 0000000..904961b
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/integration-test/src/main/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusResource.java
@@ -0,0 +1,51 @@
+/*
+ * 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.quarkus.component.guava.eventbus.it;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+
+import org.apache.camel.CamelContext;
+import org.jboss.logging.Logger;
+
+@Path("/guava-eventbus")
+@ApplicationScoped
+public class GuavaEventbusResource {
+
+    private static final Logger LOG = Logger.getLogger(GuavaEventbusResource.class);
+
+    private static final String COMPONENT_GUAVA_EVENTBUS = "guava-eventbus";
+    @Inject
+    CamelContext context;
+
+    @Path("/load/component/guava-eventbus")
+    @GET
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response loadComponentGuavaEventbus() throws Exception {
+        /* This is an autogenerated test */
+        if (context.getComponent(COMPONENT_GUAVA_EVENTBUS) != null) {
+            return Response.ok().build();
+        }
+        LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_GUAVA_EVENTBUS);
+        return Response.status(500, COMPONENT_GUAVA_EVENTBUS + " could not be loaded from the Camel context").build();
+    }
+}
diff --git a/extensions-jvm/guava-eventbus/integration-test/src/test/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusTest.java b/extensions-jvm/guava-eventbus/integration-test/src/test/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusTest.java
new file mode 100644
index 0000000..e624f47
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/integration-test/src/test/java/org/apache/camel/quarkus/component/guava/eventbus/it/GuavaEventbusTest.java
@@ -0,0 +1,34 @@
+/*
+ * 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.quarkus.component.guava.eventbus.it;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import org.junit.jupiter.api.Test;
+
+@QuarkusTest
+class GuavaEventbusTest {
+
+    @Test
+    public void loadComponentGuavaEventbus() {
+        /* A simple autogenerated test */
+        RestAssured.get("/guava-eventbus/load/component/guava-eventbus")
+                .then()
+                .statusCode(200);
+    }
+
+}
diff --git a/extensions-jvm/guava-eventbus/pom.xml b/extensions-jvm/guava-eventbus/pom.xml
new file mode 100644
index 0000000..2cb10e0
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/pom.xml
@@ -0,0 +1,40 @@
+<?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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-build-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../../poms/build-parent/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-guava-eventbus-parent</artifactId>
+    <name>Camel Quarkus :: Guava EventBus</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>deployment</module>
+        <module>runtime</module>
+        <module>integration-test</module>
+    </modules>
+</project>
diff --git a/extensions-jvm/guava-eventbus/runtime/pom.xml b/extensions-jvm/guava-eventbus/runtime/pom.xml
new file mode 100644
index 0000000..a451c67
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/runtime/pom.xml
@@ -0,0 +1,94 @@
+<?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/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.camel.quarkus</groupId>
+        <artifactId>camel-quarkus-guava-eventbus-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-guava-eventbus</artifactId>
+    <name>Camel Quarkus :: Guava EventBus :: Runtime</name>
+    <description>Send and receive messages to/from Guava EventBus.</description>
+
+    <properties>
+        <firstVersion>1.1.0</firstVersion>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-guava-eventbus</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>update-extension-doc-page</id>
+                        <goals><goal>update-extension-doc-page</goal></goals>
+                        <phase>process-classes</phase>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <annotationProcessorPaths>
+                        <path>
+                            <groupId>io.quarkus</groupId>
+                            <artifactId>quarkus-extension-processor</artifactId>
+                            <version>${quarkus.version}</version>
+                        </path>
+                    </annotationProcessorPaths>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/extensions-jvm/guava-eventbus/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions-jvm/guava-eventbus/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000..a5264ee
--- /dev/null
+++ b/extensions-jvm/guava-eventbus/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -0,0 +1,32 @@
+#
+# 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.
+#
+
+# This is a generated file. Do not edit directly!
+# To re-generate, run the following command from the top level directory:
+#
+#   mvn -N cq:update-quarkus-metadata
+#
+---
+name: "Camel Guava EventBus"
+description: "Send and receive messages to/from Guava EventBus"
+metadata:
+  unlisted: true
+  guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/guava-eventbus.html"
+  categories:
+  - "integration"
+  status:
+  - "preview"
diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml
index b3af89d..92952c9 100644
--- a/extensions-jvm/pom.xml
+++ b/extensions-jvm/pom.xml
@@ -77,6 +77,7 @@
         <module>google-pubsub</module>
         <module>groovy</module>
         <module>grpc</module>
+        <module>guava-eventbus</module>
         <module>ipfs</module>
         <module>irc</module>
         <module>jooq</module>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index b89e3d9..5c1a982 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -863,6 +863,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
+                <artifactId>camel-guava-eventbus</artifactId>
+                <version>${camel.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
                 <artifactId>camel-headersmap</artifactId>
                 <version>${camel.version}</version>
             </dependency>
@@ -2731,6 +2736,16 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-guava-eventbus</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-guava-eventbus-deployment</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
                 <artifactId>camel-quarkus-http</artifactId>
                 <version>${camel-quarkus.version}</version>
             </dependency>