[KYUUBI-SHADED #6] Fix RAT check for submodules

### _Why are the changes needed?_

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #6 from pan3793/rat.

cfb4b2d [Cheng Pan] rat

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
diff --git a/pom.xml b/pom.xml
index 7f686b7..d96d19d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -359,14 +359,15 @@
                     <artifactId>apache-rat-plugin</artifactId>
                     <inherited>true</inherited>
                     <configuration>
-                        <excludeSubProjects>false</excludeSubProjects>
+                        <excludeSubProjects>true</excludeSubProjects>
                         <numUnapprovedLicenses>0</numUnapprovedLicenses>
+                        <basedir>${project.basedir}</basedir>
                         <licenseFamilies>
                             <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
                                 <familyName>Apache License 2.0</familyName>
                             </licenseFamily>
                         </licenseFamilies>
-                        <excludesFile>.rat-excludes</excludesFile>
+                        <excludesFile>${maven.multiModuleProjectDirectory}/.rat-excludes</excludesFile>
                     </configuration>
                     <executions>
                         <execution>