[FLINK-3287] Shade Curator dependency into flink-connector-kafka-0.8

Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/cb1a5ecb
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/cb1a5ecb
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/cb1a5ecb

Branch: refs/heads/master
Commit: cb1a5ecbca9b8df924968904d87b6ff4ac4d7be7
Parents: 79058ed
Author: Robert Metzger <rmetz...@apache.org>
Authored: Thu Jan 28 15:16:16 2016 +0100
Committer: Robert Metzger <rmetz...@apache.org>
Committed: Tue Feb 2 15:38:46 2016 +0100

----------------------------------------------------------------------
 .../flink-connector-kafka-0.8/pom.xml           | 27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/cb1a5ecb/flink-streaming-connectors/flink-connector-kafka-0.8/pom.xml
----------------------------------------------------------------------
diff --git a/flink-streaming-connectors/flink-connector-kafka-0.8/pom.xml 
b/flink-streaming-connectors/flink-connector-kafka-0.8/pom.xml
index 0b23994..3672c81 100644
--- a/flink-streaming-connectors/flink-connector-kafka-0.8/pom.xml
+++ b/flink-streaming-connectors/flink-connector-kafka-0.8/pom.xml
@@ -154,6 +154,33 @@ under the License.
                                        <forkCount>1</forkCount>
                                </configuration>
                        </plugin>
+                       <!-- Relocate curator -->
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-shade-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>shade-flink</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>shade</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <artifactSet>
+                                                               <includes 
combine.children="append">
+                                                                       
<include>org.apache.flink:flink-shaded-curator-recipes</include>
+                                                               </includes>
+                                                       </artifactSet>
+                                                       <relocations 
combine.children="append">
+                                                               <relocation>
+                                                                       
<pattern>org.apache.curator</pattern>
+                                                                       
<shadedPattern>org.apache.flink.shaded.org.apache.curator</shadedPattern>
+                                                               </relocation>
+                                                       </relocations>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
        </build>
        

Reply via email to