You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2019/02/15 05:14:46 UTC
[pulsar] branch master updated: Fixed RAT check to exclude Avro
generated files (#3598)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 3ea2c77 Fixed RAT check to exclude Avro generated files (#3598)
3ea2c77 is described below
commit 3ea2c77737dad164c6f944597112ae9f492bfe1e
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Thu Feb 14 21:14:42 2019 -0800
Fixed RAT check to exclude Avro generated files (#3598)
### Motivation
Fixes the Apache RAT check to exclude the auto-generated files from Avro compiler and Avro JSON schema definitions.
---
pom.xml | 7 +++++++
.../main/resources/META-INF/services/pulsar-io.yaml | 18 ++++++++++++++++++
2 files changed, 25 insertions(+)
diff --git a/pom.xml b/pom.xml
index 651812c..1c9632b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1237,6 +1237,13 @@ flexible messaging model and an intuitive client API.</description>
<exclude>src/main/java/org/apache/pulsar/broker/service/schema/proto/SchemaRegistryFormat.java</exclude>
<exclude>bin/proto/MLDataFormats_pb2.py</exclude>
+ <!-- These files are generated automatically by the Avro compiler
+ and are included in source tree for convenience -->
+ <exclude>**/avro/generated/*.java</exclude>
+
+ <!-- Avro schema definitions - JSON format -->
+ <exclude>**/*.avsc</exclude>
+
<!-- pulasr-io-connector kinesis : auto generated files from flatbuffer schema -->
<exclude>src/main/java/org/apache/pulsar/io/kinesis/fbs/CompressionType.java</exclude>
<exclude>src/main/java/org/apache/pulsar/io/kinesis/fbs/EncryptionCtx.java</exclude>
diff --git a/pulsar-io/mongo/src/main/resources/META-INF/services/pulsar-io.yaml b/pulsar-io/mongo/src/main/resources/META-INF/services/pulsar-io.yaml
index 476baed..a1cf293 100644
--- a/pulsar-io/mongo/src/main/resources/META-INF/services/pulsar-io.yaml
+++ b/pulsar-io/mongo/src/main/resources/META-INF/services/pulsar-io.yaml
@@ -1,3 +1,21 @@
+#
+# 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.
+#
name: mongo
description: Writes data into MongoDB
sinkClass: org.apache.pulsar.io.mongodb.MongoSink