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 a78b48a721b595eec56c94567ae52c2879ee1a2e Author: zentol <[email protected]> AuthorDate: Tue Jun 27 14:35:52 2017 +0200 Add flink-shaded-netty module --- flink-shaded-netty-4/pom.xml | 112 +++++++++++++++++++++++++++++++++++++++++++ pom.xml | 1 + 2 files changed, 113 insertions(+) diff --git a/flink-shaded-netty-4/pom.xml b/flink-shaded-netty-4/pom.xml new file mode 100644 index 0000000..b831c44 --- /dev/null +++ b/flink-shaded-netty-4/pom.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flink</groupId> + <artifactId>flink-shaded</artifactId> + <version>1.0</version> + <relativePath>..</relativePath> + </parent> + + <artifactId>flink-shaded-netty-4</artifactId> + <name>flink-shaded-netty-4</name> + <version>1.0-${netty.version}</version> + + <properties> + <!-- Don't upgrade for now. Netty versions >= 4.0.28.Final + contain an improvement by Netty, which slices a Netty buffer + instead of doing a memory copy [1] in the + LengthFieldBasedFrameDecoder. In some situations, this + interacts badly with our Netty pipeline leading to OutOfMemory + errors. + + [1] https://github.com/netty/netty/issues/3704 --> + <netty.version>4.0.27.Final</netty.version> + </properties> + + <dependencies> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + + <dependency> + <groupId>tv.cntt</groupId> + <artifactId>netty-router</artifactId> + <version>1.10</version> + </dependency> + </dependencies> + + <build> + <plugins> + <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> + <createDependencyReducedPom>true</createDependencyReducedPom> + <dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation> + <artifactSet> + <includes> + <include>tv.cntt:*</include> + <include>io.netty:*</include> + </includes> + </artifactSet> + <relocations> + <relocation> + <pattern>io.netty</pattern> + <shadedPattern>org.apache.flink.shaded.netty4.io.netty</shadedPattern> + </relocation> + <relocation> + <pattern>jauter</pattern> + <shadedPattern>org.apache.flink.shaded.netty4.jauter</shadedPattern> + </relocation> + </relocations> + <transformers> + <!-- The service transformer is needed to merge META-INF/services files --> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> + <!-- The ApacheNoticeResourceTransformer collects and aggregates NOTICE files --> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/> + <!-- The ApacheLicenseResourceTransformer prevents duplicate Apache Licenses --> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + + +</project> \ No newline at end of file diff --git a/pom.xml b/pom.xml index 15e7c6c..f60c259 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,7 @@ under the License. <modules> <module>flink-shaded-guava-18</module> + <module>flink-shaded-netty-4</module> </modules> <build>
