You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/06 12:32:27 UTC

[camel-kafka-connector] 01/03: Added a camel-kafka-connector-catalog to collect all the json descriptor

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

acosentino pushed a commit to branch catalog-impl
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 442ba5362a3a667ddf83d55ee0187a68b0c66e70
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Oct 6 12:30:06 2020 +0200

    Added a camel-kafka-connector-catalog to collect all the json descriptor
---
 camel-kafka-connector-catalog/pom.xml | 77 +++++++++++++++++++++++++++++++++++
 connectors/pom.xml                    | 23 +++++++++++
 2 files changed, 100 insertions(+)

diff --git a/camel-kafka-connector-catalog/pom.xml b/camel-kafka-connector-catalog/pom.xml
new file mode 100644
index 0000000..e5f0e4b
--- /dev/null
+++ b/camel-kafka-connector-catalog/pom.xml
@@ -0,0 +1,77 @@
+<?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.kafkaconnector</groupId>
+        <artifactId>parent</artifactId>
+        <version>0.6.0-SNAPSHOT</version>
+        <relativePath>../parent/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>camel-kafka-connector-catalog</artifactId>
+    <packaging>jar</packaging>
+    <name>Camel Kafka Connector Calog</name>
+    <description>Camel Kafka Connector Catalog</description>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-util-json</artifactId>
+            <version>${camel.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-tooling-model</artifactId>
+            <version>${camel.version}</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                            <goal>add-resource</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>src/generated/resources</source>
+                            </sources>
+                            <resources>
+                                <resource>
+                                    <directory>src/generated/resources</directory>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/connectors/pom.xml b/connectors/pom.xml
index ebfe204..a444578 100644
--- a/connectors/pom.xml
+++ b/connectors/pom.xml
@@ -150,6 +150,29 @@
                 </dependencies>
             </plugin>
             <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-resources-plugin</artifactId>
+               <version>3.2.0</version>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+           <phase>install</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.basedir}/../../camel-kafka-connector-catalog/src/generated/resources</outputDirectory>
+              <resources>          
+                <resource>
+                  <directory>src/generated/resources</directory>
+                  <filtering>true</filtering>
+                </resource>
+              </resources>              
+            </configuration>            
+          </execution>
+        </executions>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.camel.kafkaconnector</groupId>
                 <artifactId>camel-kafka-connector-docs-maven-plugin</artifactId>
                 <version>${project.version}</version>