Fixed apache-rat validations
diff --git a/distribution/server/src/assemble/src.xml b/distribution/server/src/assemble/src.xml
index d9af938..516528a 100644
--- a/distribution/server/src/assemble/src.xml
+++ b/distribution/server/src/assemble/src.xml
@@ -48,6 +48,8 @@
       </includes>
       <excludes>
         <exclude>.git/**</exclude>
+        <exclude>**/*.nar</exclude>
+        <exclude>**/.terraform/**</exclude>
         <exclude>**/.gitignore</exclude>
         <exclude>**/.svn</exclude>
         <exclude>**/*.iws</exclude>
@@ -72,6 +74,8 @@
         <exclude>pulsar-client-cpp/perf/perfConsumer</exclude>
 
         <exclude>**/python/dist/**</exclude>
+        <exclude>**/pulsar-client-cpp/pkg/rpm/RPMS/**</exclude>
+        <exclude>**/pulsar-client-cpp/pkg/rpm/SOURCES/**</exclude>
         <exclude>**/python/wheelhouse/**</exclude>
         <exclude>**/python/MANIFEST</exclude>
         <exclude>**/*.egg-info/**</exclude>
diff --git a/examples/flink-consumer-source/README.md b/examples/flink-consumer-source/README.md
index 209bb31..804a9d3 100644
--- a/examples/flink-consumer-source/README.md
+++ b/examples/flink-consumer-source/README.md
@@ -1,3 +1,24 @@
+<!--
+
+    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.
+
+-->
+
 ## Apache Flink Connectors for Pulsar
 
 This page describes how to use the connectors to read and write Pulsar topics with [Apache Flink](https://flink.apache.org/) stream processing applications.
diff --git a/pom.xml b/pom.xml
index b8de04f..fdb9eca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1133,10 +1133,11 @@
 
             <!-- This is a text property file that contains just a class name -->
             <exclude>**/META-INF/services/com.scurrilous.circe.HashProvider</exclude>
+            <exclude>**/META-INF/services/com.facebook.presto.spi.Plugin</exclude>
 
             <!-- Django generated code -->
             <exclude>dashboard/django/stats/migrations/*.py</exclude>
-            <exclude>dashboard/conf/uwsgi_params</exclude>
+            <exclude>**/conf/uwsgi_params</exclude>
 
             <!-- Exclude certificates used for tests -->
             <exclude>**/*.crt</exclude>
diff --git a/tests/compose/README.md b/tests/compose/README.md
index 63c97e5..6b57504 100644
--- a/tests/compose/README.md
+++ b/tests/compose/README.md
@@ -1,3 +1,24 @@
+<!--
+
+    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 are docker compose files to quickly bring up a pulsar
 cluster. They use the pulsar testing docker image. To generate this,
 run ```mvn install -DskipTests -Pdocker``` in the top-level directory