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檢測
浙公網安備 33010602011771號