1. Too many unapproved licenses
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.7:check (rat-check) on project apache-atlas: Too many unapproved licenses: 1 -> [Help 1]
解決方案:
# 加入 apache-rat:check -Drat.numUnapprovedLicenses=600
# -DskipTests 跳過單元測試,但是會編譯測試代碼,即 src/test/java中的代碼
# -Dmaven.test.skip 單元測試、測試代碼編譯都跳過
mvn clean apache-rat:check -Drat.numUnapprovedLicenses=600 install -DskipTests
2. rat.txt
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default-cli) on project flink-parent: Too many files with unapproved license: 2 See RAT report in: D:\workspace\source-code\flink-release-1.7.2\target\rat.txt -> [Help 1]
解決方案:
# 加入 -Drat.skip=true
mvn clean install -DskipTests -Drat.skip=true