[FLINK-7026] Add flink-shaded-asm-5 module 5/head
authorzentol <chesnay@apache.org>
Wed, 28 Jun 2017 11:13:34 +0000 (13:13 +0200)
committerzentol <chesnay@apache.org>
Wed, 28 Jun 2017 11:13:34 +0000 (13:13 +0200)
flink-shaded-asm-5/pom.xml [new file with mode: 0644]
pom.xml

diff --git a/flink-shaded-asm-5/pom.xml b/flink-shaded-asm-5/pom.xml
new file mode 100644 (file)
index 0000000..a729537
--- /dev/null
@@ -0,0 +1,94 @@
+<?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-asm-5</artifactId>
+    <name>flink-shaded-asm-5</name>
+    <version>1.0-${asm.version}</version>
+
+    <packaging>jar</packaging>
+
+    <properties>
+        <asm.version>5.0.4</asm.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm-all</artifactId>
+            <version>${asm.version}</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>org.ow2.asm:*</include>
+                                </includes>
+                            </artifactSet>
+                            <relocations>
+                                <relocation>
+                                    <pattern>org.objectweb</pattern>
+                                    <shadedPattern>org.apache.flink.shaded.asm5.org.objectweb</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>
diff --git a/pom.xml b/pom.xml
index f60c259aeed38be1c77e4a288bbd1bb371e5d872..cb6012b11f66a4de5fd481c9477a7c4f98ef0a59 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -56,6 +56,7 @@ under the License.
     </scm>
 
     <modules>
+        <module>flink-shaded-asm-5</module>
         <module>flink-shaded-guava-18</module>
         <module>flink-shaded-netty-4</module>
     </modules>