Skip to content

Commit

Permalink
[FLINK-4799] re-add 'build-target' symlink on Unix systems
Browse files Browse the repository at this point in the history
This adds back the link 'build-target' which points to the final build
assembly in 'flink-dist/target/'.

This closes apache#2620
  • Loading branch information
mxm committed Oct 12, 2016
1 parent 7b79c8b commit 15df71b
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ under the License.

</dependencies>

<!-- See main pom.xml for explanation of profiles -->
<profiles>
<!-- See main pom.xml for explanation of Hadoop profiles -->
<profile>
<id>include-yarn</id>
<activation>
Expand All @@ -146,6 +146,57 @@ under the License.
</dependency>
</dependencies>
</profile>

<profile>
<!-- Creates/Removes the 'build-target' symlink in the root directory (only Unix systems) -->
<id>symlink-build-target</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>remove-build-target-link</id>
<phase>clean</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>rm</executable>
<arguments>
<argument>-f</argument>
<argument>${project.basedir}/../build-target</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>create-build-target-link</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>ln</executable>
<arguments>
<argument>-sf</argument>
<argument>${project.basedir}/target/flink-${project.version}-bin/flink-${project.version}</argument>
<argument>${project.basedir}/../build-target</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

<build>
Expand Down Expand Up @@ -270,4 +321,5 @@ under the License.

</plugins>
</build>

</project>

0 comments on commit 15df71b

Please sign in to comment.