From bf0042cbff2c2b70622d5be20784b00fdf8480e0 Mon Sep 17 00:00:00 2001 From: timothy65535 Date: Wed, 21 Jul 2021 12:19:17 +0800 Subject: [PATCH] [KYUUBI #842] Fix meet rat check error when build kyuubi project Fixes #842 ### _Why are the changes needed?_ ### 1. Describe the bug Meet rat check error when build kyuubi project ``` [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default-cli) on project kyuubi: Too many files with unapproved license: 75 See RAT report in: /work/projects/opensource/kyuubi/target/rat.txt -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ``` ### 2. Steps to reproduce 1. Build kyuubi project ``` ./build/dist --tgz --spark-provided -Pkyuubi-extension-spark_3.1 ``` 2. Untar dist package and check some jars 3. Build kyuubi again ### _How was this patch tested?_ - [X] Add some test cases that check the changes thoroughly including negative and positive cases if possible ``` mvn org.apache.rat:apache-rat-plugin:0.13:check ``` - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request ![image](https://user-images.githubusercontent.com/86483005/126352583-324bd9c2-8ce7-449e-bec6-00cb91823dfe.png) ``` 74 Unknown Licenses ***************************************************** Files with unapproved licenses: kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin-hadoop3.2/data/mllib/ridge-data/lpsa.data kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin-hadoop3.2/data/mllib/als/test.data kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin- kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin-hadoop3.2/R/lib/SparkR/doc/sparkr-vignettes.R kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin-hadoop3.2/R/lib/SparkR/doc/index.html kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/externals/spark-3.1.2-bin-hadoop3.2/R/lib/SparkR/R/SparkR kyuubi-1.3.0-SNAPSHOT-bin-spark-3.1-hadoop3.2/RELEASE kyuubi-1.3.0-SNAPSHOT-bin-without-spark/RELEASE ***************************************************** ``` Closes #843 from timothy65535/ky-842. Closes #842 a236167d [timothy65535] improve rat exclude list a7bc4fb0 [timothy65535] [KYUUBI #842] Fix meet rat check error when build kyuubi project Authored-by: timothy65535 Signed-off-by: ulysses-you --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index d82b1e99a..7df74c874 100644 --- a/pom.xml +++ b/pom.xml @@ -1371,6 +1371,8 @@ build/scala-*/** **/**/operation_logs/**/** **/*.output.schema + **/kyuubi-*-bin-without-spark/** + **/kyuubi-*-bin-spark-*/**