[FLINK-5814] [build] Fix packaging flink-dist in unclean source directory If "<flink-dir>/build-target" already existed, running 'mvn package' for flink-dist would create a symbolic link inside "<flink-dir>/build-target" instead of replacing that symlink. This commit fixes this behaviour of 'ln -sf' by adding the --no-dereference parameter.
This closes #3331 Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/6114c5b0 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/6114c5b0 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/6114c5b0 Branch: refs/heads/release-1.2 Commit: 6114c5b01d60d37efdd7db47bf9378f8dea4385c Parents: 3429ea0 Author: Nico Kruber <[email protected]> Authored: Wed Feb 15 15:50:45 2017 +0100 Committer: Stephan Ewen <[email protected]> Committed: Thu Feb 16 14:51:27 2017 +0100 ---------------------------------------------------------------------- flink-dist/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/6114c5b0/flink-dist/pom.xml ---------------------------------------------------------------------- diff --git a/flink-dist/pom.xml b/flink-dist/pom.xml index 1af0775..b00b7eb 100644 --- a/flink-dist/pom.xml +++ b/flink-dist/pom.xml @@ -275,7 +275,7 @@ under the License. <configuration> <executable>ln</executable> <arguments> - <argument>-sf</argument> + <argument>-sfn</argument> <argument>${project.basedir}/target/flink-${project.version}-bin/flink-${project.version}</argument> <argument>${project.basedir}/../build-target</argument> </arguments>
