当我尝试从源代码构建1.4时,构建了Flink 1.5-SNAPSHOT

时间:2018-01-19 08:04:52

标签: apache-flink flink-streaming

我正在关注documentation to build Flink 1.4,而是建立了Flink 1.5-SNAPSHOT

我做错了什么?

[INFO] ------------------------------------------------------------------------
[INFO] Building flink-streaming-java 1.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ flink-streaming-java_2.11 ---
[INFO] 
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ flink-streaming-java_2.11 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) @ flink-streaming-java_2.11 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (dependency-convergence) @ flink-streaming-java_2.11 ---
[INFO] 
[INFO] --- directory-maven-plugin:0.1:highest-basedir (directories) @ flink-streaming-java_2.11 ---
[INFO] Highest basedir set to: /Users/amar/Downloads/flink-master
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ flink-streaming-java_2.11 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ flink-streaming-java_2.11 ---

1 个答案:

答案 0 :(得分:1)

文档不正确。它显示了如何构建当前主分支,它始终是最新的SNAPSHOT版本(当前为1.5-SNAPSHOT)。在发布新的次要Flink版本之前,我们分发了一个发布分支。对于Flink 1.4,此分支称为release-1.4

您可以通过在调用Maven之前签出release-1.4分支来构建Flink 1.4-SNAPSHOT(dev分支中的最新版本以及Flink 1.4的所有错误修正)。所以命令应该是:

git clone https://github.com/apache/flink
cd flink
git checkout release-1.4
mvn -DskipTests clean install

如果您要构建特定版本,即不是某个版本的最新SNAPSHOT,您可以签出一个标签。对于Flink 1.4.0,这将是git checkout release 1.4.0而不是git checkout release 1.4