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 c865dc4f0eb69255943fd9026f8ee997798f86e4
Author: Peter Palaga <ppal...@redhat.com>
AuthorDate: Thu Aug 27 17:36:41 2020 +0200

    HDFS JVM support
---
 catalog/pom.xml                                    |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 docs/modules/ROOT/pages/reference/components.adoc  |  3 +
 .../ROOT/pages/reference/extensions/hdfs.adoc      | 29 +++++++
 docs/modules/ROOT/pages/reference/index.adoc       |  3 +
 extensions-jvm/hdfs/deployment/pom.xml             | 67 +++++++++++++++
 .../component/hdfs/deployment/HdfsProcessor.java   | 46 ++++++++++
 extensions-jvm/hdfs/integration-test/pom.xml       | 95 +++++++++++++++++++++
 .../quarkus/component/hdfs/it/HdfsResource.java    | 51 +++++++++++
 .../camel/quarkus/component/hdfs/it/HdfsTest.java  | 34 ++++++++
 extensions-jvm/hdfs/pom.xml                        | 40 +++++++++
 extensions-jvm/hdfs/runtime/pom.xml                | 98 ++++++++++++++++++++++
 .../main/resources/META-INF/quarkus-extension.yaml | 32 +++++++
 extensions-jvm/pom.xml                             |  1 +
 pom.xml                                            |  1 +
 poms/bom/pom.xml                                   | 34 ++++++++
 16 files changed, 536 insertions(+)

diff --git a/catalog/pom.xml b/catalog/pom.xml
index 5bb463f..470a78a 100644
--- a/catalog/pom.xml
+++ b/catalog/pom.xml
@@ -156,6 +156,7 @@
             camel-quarkus-gson
             camel-quarkus-guava-eventbus
             camel-quarkus-hazelcast
+            camel-quarkus-hdfs
             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 e8e5f16..da7bbd1 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -132,6 +132,7 @@
 *** xref:reference/extensions/grpc.adoc[gRPC]
 *** xref:reference/extensions/guava-eventbus.adoc[Guava EventBus]
 *** xref:reference/extensions/hazelcast.adoc[Hazelcast Atomic Number]
+*** xref:reference/extensions/hdfs.adoc[HDFS]
 *** 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 ee27418..5321552 100644
--- a/docs/modules/ROOT/pages/reference/components.adoc
+++ b/docs/modules/ROOT/pages/reference/components.adoc
@@ -409,6 +409,9 @@ Preview | 1.1.0 | Perform operations on Hazelcast 
distributed set.
 | xref:reference/extensions/hazelcast.adoc[Hazelcast Topic] | 
[.camel-element-artifact]##camel-quarkus-hazelcast## | 
[.camel-element-JVM]##JVM## +
 Preview | 1.1.0 | Send and receive messages to/from Hazelcast distributed 
topic.
 
+| xref:reference/extensions/hdfs.adoc[HDFS] | 
[.camel-element-artifact]##camel-quarkus-hdfs## | [.camel-element-JVM]##JVM## +
+Preview | 1.1.0 | Read and write from/to an HDFS filesystem using Hadoop 2.x.
+
 | 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/hdfs.adoc 
b/docs/modules/ROOT/pages/reference/extensions/hdfs.adoc
new file mode 100644
index 0000000..67ed335
--- /dev/null
+++ b/docs/modules/ROOT/pages/reference/extensions/hdfs.adoc
@@ -0,0 +1,29 @@
+// Do not edit directly!
+// This file was generated by 
camel-quarkus-maven-plugin:update-extension-doc-page
+
+[[hdfs]]
+= HDFS
+:page-aliases: extensions/hdfs.adoc
+
+[.badges]
+[.badge-key]##Since Camel Quarkus##[.badge-version]##1.1.0## 
[.badge-key]##JVM##[.badge-supported]##supported## 
[.badge-key]##Native##[.badge-unsupported]##unsupported##
+
+Read and write from/to an HDFS filesystem using Hadoop 2.x.
+
+== What's inside
+
+* https://camel.apache.org/components/latest/hdfs-component.html[HDFS 
component], URI syntax: `hdfs:hostName:port/path`
+
+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-hdfs</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 199f06d..1bb79f6 100644
--- a/docs/modules/ROOT/pages/reference/index.adoc
+++ b/docs/modules/ROOT/pages/reference/index.adoc
@@ -374,6 +374,9 @@ Preview | 1.1.0 | Send and receive messages to/from Guava 
EventBus.
 |  xref:reference/extensions/hazelcast.adoc[Hazelcast Atomic Number]  | 
camel-quarkus-hazelcast | [.camel-element-JVM]##JVM## +
 Preview | 1.1.0 | Increment, decrement, set, etc. Hazelcast atomic number (a 
grid wide number).
 
+|  xref:reference/extensions/hdfs.adoc[HDFS]  | camel-quarkus-hdfs | 
[.camel-element-JVM]##JVM## +
+Preview | 1.1.0 | Read and write from/to an HDFS filesystem using Hadoop 2.x.
+
 |  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/hdfs/deployment/pom.xml 
b/extensions-jvm/hdfs/deployment/pom.xml
new file mode 100644
index 0000000..76a9895
--- /dev/null
+++ b/extensions-jvm/hdfs/deployment/pom.xml
@@ -0,0 +1,67 @@
+<?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-hdfs-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-hdfs-deployment</artifactId>
+    <name>Camel Quarkus :: HDFS :: 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-support-commons-logging-deployment</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-hdfs</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/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java
 
b/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.java
new file mode 100644
index 0000000..34ea8ff
--- /dev/null
+++ 
b/extensions-jvm/hdfs/deployment/src/main/java/org/apache/camel/quarkus/component/hdfs/deployment/HdfsProcessor.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.hdfs.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 HdfsProcessor {
+
+    private static final Logger LOG = Logger.getLogger(HdfsProcessor.class);
+    private static final String FEATURE = "camel-hdfs";
+
+    @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/hdfs/integration-test/pom.xml 
b/extensions-jvm/hdfs/integration-test/pom.xml
new file mode 100644
index 0000000..3dc6f23
--- /dev/null
+++ b/extensions-jvm/hdfs/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-hdfs-integration-test</artifactId>
+    <name>Camel Quarkus :: HDFS :: Integration Test</name>
+    <description>Integration tests for Camel Quarkus HDFS 
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-hdfs-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-hdfs</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/hdfs/integration-test/src/main/java/org/apache/camel/quarkus/component/hdfs/it/HdfsResource.java
 
b/extensions-jvm/hdfs/integration-test/src/main/java/org/apache/camel/quarkus/component/hdfs/it/HdfsResource.java
new file mode 100644
index 0000000..3e7cffb
--- /dev/null
+++ 
b/extensions-jvm/hdfs/integration-test/src/main/java/org/apache/camel/quarkus/component/hdfs/it/HdfsResource.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.hdfs.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("/hdfs")
+@ApplicationScoped
+public class HdfsResource {
+
+    private static final Logger LOG = Logger.getLogger(HdfsResource.class);
+
+    private static final String COMPONENT_HDFS = "hdfs";
+    @Inject
+    CamelContext context;
+
+    @Path("/load/component/hdfs")
+    @GET
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response loadComponentHdfs() throws Exception {
+        /* This is an autogenerated test */
+        if (context.getComponent(COMPONENT_HDFS) != null) {
+            return Response.ok().build();
+        }
+        LOG.warnf("Could not load [%s] from the Camel context", 
COMPONENT_HDFS);
+        return Response.status(500, COMPONENT_HDFS + " could not be loaded 
from the Camel context").build();
+    }
+}
diff --git 
a/extensions-jvm/hdfs/integration-test/src/test/java/org/apache/camel/quarkus/component/hdfs/it/HdfsTest.java
 
b/extensions-jvm/hdfs/integration-test/src/test/java/org/apache/camel/quarkus/component/hdfs/it/HdfsTest.java
new file mode 100644
index 0000000..1a891ac
--- /dev/null
+++ 
b/extensions-jvm/hdfs/integration-test/src/test/java/org/apache/camel/quarkus/component/hdfs/it/HdfsTest.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.hdfs.it;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import org.junit.jupiter.api.Test;
+
+@QuarkusTest
+class HdfsTest {
+
+    @Test
+    public void loadComponentHdfs() {
+        /* A simple autogenerated test */
+        RestAssured.get("/hdfs/load/component/hdfs")
+                .then()
+                .statusCode(200);
+    }
+
+}
diff --git a/extensions-jvm/hdfs/pom.xml b/extensions-jvm/hdfs/pom.xml
new file mode 100644
index 0000000..a2566bf
--- /dev/null
+++ b/extensions-jvm/hdfs/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-hdfs-parent</artifactId>
+    <name>Camel Quarkus :: HDFS</name>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>deployment</module>
+        <module>runtime</module>
+        <module>integration-test</module>
+    </modules>
+</project>
diff --git a/extensions-jvm/hdfs/runtime/pom.xml 
b/extensions-jvm/hdfs/runtime/pom.xml
new file mode 100644
index 0000000..6886265
--- /dev/null
+++ b/extensions-jvm/hdfs/runtime/pom.xml
@@ -0,0 +1,98 @@
+<?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-hdfs-parent</artifactId>
+        <version>1.1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-quarkus-hdfs</artifactId>
+    <name>Camel Quarkus :: HDFS :: Runtime</name>
+    <description>Read and write from/to an HDFS filesystem using Hadoop 
2.x.</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.quarkus</groupId>
+            <artifactId>camel-quarkus-support-commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-hdfs</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/hdfs/runtime/src/main/resources/META-INF/quarkus-extension.yaml
 
b/extensions-jvm/hdfs/runtime/src/main/resources/META-INF/quarkus-extension.yaml
new file mode 100644
index 0000000..453ff23
--- /dev/null
+++ 
b/extensions-jvm/hdfs/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 HDFS"
+description: "Read and write from/to an HDFS filesystem using Hadoop 2.x"
+metadata:
+  unlisted: true
+  guide: 
"https://camel.apache.org/camel-quarkus/latest/reference/extensions/hdfs.html";
+  categories:
+  - "integration"
+  status:
+  - "preview"
diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml
index 646fa00..73dc786 100644
--- a/extensions-jvm/pom.xml
+++ b/extensions-jvm/pom.xml
@@ -79,6 +79,7 @@
         <module>grpc</module>
         <module>guava-eventbus</module>
         <module>hazelcast</module>
+        <module>hdfs</module>
         <module>ipfs</module>
         <module>irc</module>
         <module>jooq</module>
diff --git a/pom.xml b/pom.xml
index 7ed5a96..67b88ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,6 +69,7 @@
         <kafka.version>2.5.0</kafka.version>
         <kubernetes-client.version>4.10.2</kubernetes-client.version>
         <kotlin.version>1.3.72</kotlin.version>
+        <nimbus-jose-jwt.version>4.41.1</nimbus-jose-jwt.version><!-- Mess in 
hdfs transitive deps -->
         <okhttp.version>3.14.6</okhttp.version><!-- keep in sync with okio -->
         <okio.version>1.17.2</okio.version><!-- keep in sync with okhttp -->
         <quarkus.version>1.7.1.Final</quarkus.version>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 18d8c8a..8041090 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -873,6 +873,25 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
+                <artifactId>camel-hdfs</artifactId>
+                <version>${camel.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>com.google.code.findbugs</groupId>
+                        <artifactId>jsr305</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>commons-logging</groupId>
+                        <artifactId>commons-logging</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>javax.ws.rs</groupId>
+                        <artifactId>jsr311-api</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
                 <artifactId>camel-headersmap</artifactId>
                 <version>${camel.version}</version>
             </dependency>
@@ -2761,6 +2780,16 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-hdfs</artifactId>
+                <version>${camel-quarkus.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-hdfs-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>
@@ -4150,6 +4179,11 @@
                 <version>${protobuf-java.version}</version>
             </dependency>
             <dependency>
+                <groupId>com.nimbusds</groupId>
+                <artifactId>nimbus-jose-jwt</artifactId>
+                <version>${nimbus-jose-jwt.version}</version>
+            </dependency>
+            <dependency>
                 <groupId>com.orbitz.consul</groupId>
                 <artifactId>consul-client</artifactId>
                 <version>${consul-client.version}</version>

Reply via email to