You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2017/10/14 23:31:02 UTC

[7/8] flink git commit: [FLINK-7419] [build] Shade jackson dependency in flink-avro

[FLINK-7419] [build] Shade jackson dependency in flink-avro

This closes #5424


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

Branch: refs/heads/master
Commit: dbaf262c6e2f8a5db4a40d4ecce42782dc7e2d2e
Parents: 438ee26
Author: zjureel <zj...@gmail.com>
Authored: Fri Aug 11 11:35:02 2017 +0800
Committer: Stephan Ewen <se...@apache.org>
Committed: Sat Oct 14 23:18:44 2017 +0200

----------------------------------------------------------------------
 flink-connectors/flink-avro/pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/dbaf262c/flink-connectors/flink-avro/pom.xml
----------------------------------------------------------------------
diff --git a/flink-connectors/flink-avro/pom.xml b/flink-connectors/flink-avro/pom.xml
index 29d8169..f8d9293 100644
--- a/flink-connectors/flink-avro/pom.xml
+++ b/flink-connectors/flink-avro/pom.xml
@@ -174,6 +174,35 @@ under the License.
 					</execution>
 				</executions>
 			</plugin>
+
+			<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 combine.self="override">
+							<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
+							<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+							<artifactSet>
+								<includes>
+									<include>org.codehaus.jackson:*</include>
+								</includes>
+							</artifactSet>
+							<relocations>
+								<relocation>
+									<pattern>org.codehaus.jackson</pattern>
+									<shadedPattern>org.apache.flink.avro.shaded.org.codehouse.jackson</shadedPattern>
+								</relocation>
+							</relocations>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
 		</plugins>
 
 		<pluginManagement>