IDEA学习Flink源码
一、git下载源码
git clone https://github.com/apache/flink.git
二、编译Flink
1.修改maven setting.xml, 便于尽量下载依赖包和插件
https://github.com/PanicJaw/FlinkConf/blob/master/settings.xml
2.编译
mvn clean install -DskipTests
3.出现问题
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 1793 See RAT report in: /Users/zhuangzebo/IdeaProjects/flink/target/rat.txt -> [Help 1] [ERROR]
原因:新加的文件没有添加license头
解决:添加-Drat.skip=true参数,跳过license检测