You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/01/31 14:13:25 UTC

[flink-shaded] 29/47: (#37) Include jackson-dataformat-yaml and snakeyaml

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-shaded.git

commit 6f68171f8aac6884bc62fd336943acdfa1679635
Author: zentol <ch...@apache.org>
AuthorDate: Mon Feb 19 13:50:47 2018 +0100

    (#37) Include jackson-dataformat-yaml and snakeyaml
---
 .../flink-shaded-jackson-2/pom.xml                 | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/flink-shaded-jackson-parent/flink-shaded-jackson-2/pom.xml b/flink-shaded-jackson-parent/flink-shaded-jackson-2/pom.xml
index 6a72eca..167020a 100644
--- a/flink-shaded-jackson-parent/flink-shaded-jackson-2/pom.xml
+++ b/flink-shaded-jackson-parent/flink-shaded-jackson-2/pom.xml
@@ -32,4 +32,39 @@ under the License.
     <artifactId>flink-shaded-jackson</artifactId>
     <name>flink-shaded-jackson-2</name>
 
+    <dependencies>
+        <dependency>
+            <groupId>com.fasterxml.jackson.dataformat</groupId>
+            <artifactId>jackson-dataformat-yaml</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>shade-flink</id>
+                        <configuration>
+                            <artifactSet>
+                                <includes combine.children="append">
+                                    <include>org.yaml:snakeyaml</include>
+                                </includes>
+                            </artifactSet>
+                            <relocations combine.children="append">
+                                <relocation>
+                                    <pattern>org.yaml</pattern>
+                                    <shadedPattern>org.apache.flink.shaded.jackson2.org.yaml
+                                    </shadedPattern>
+                                </relocation>
+                            </relocations>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>
\ No newline at end of file