背景
Apache Flink项目构建时可能遇到Apache RAT许可检查失败的问题。
Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 4 See RAT report in: E:\source\flink-release-1.10.0\flink-release-1.10.0\target\rat.txt
解决方法
增加-Drat.skip=true参数跳过licensing 检查:
mvn clean install -DskipTests -Drat.skip=true