|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +Licensed to the Apache Software Foundation (ASF) under one |
| 4 | +or more contributor license agreements. See the NOTICE file |
| 5 | +distributed with this work for additional information |
| 6 | +regarding copyright ownership. The ASF licenses this file |
| 7 | +to you under the Apache License, Version 2.0 (the |
| 8 | +"License"); you may not use this file except in compliance |
| 9 | +with the License. You may obtain a copy of the License at |
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +Unless required by applicable law or agreed to in writing, |
| 12 | +software distributed under the License is distributed on an |
| 13 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +KIND, either express or implied. See the License for the |
| 15 | +specific language governing permissions and limitations |
| 16 | +under the License. |
| 17 | +--> |
| 18 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 19 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 20 | + |
| 21 | + <modelVersion>4.0.0</modelVersion> |
| 22 | + |
| 23 | + <parent> |
| 24 | + <groupId>org.apache.flink</groupId> |
| 25 | + <artifactId>flink-hadoop34-fs-base</artifactId> |
| 26 | + <version>2.2-SNAPSHOT</version> |
| 27 | + <relativePath>../flink-hadoop34-fs-base</relativePath> |
| 28 | + </parent> |
| 29 | + |
| 30 | + <artifactId>flink-fs-hadoop34-shaded</artifactId> |
| 31 | + <name>Flink : FileSystems : Hadoop FS 3.4 shaded</name> |
| 32 | + |
| 33 | + <packaging>jar</packaging> |
| 34 | + |
| 35 | + <properties> |
| 36 | + <japicmp.skip>true</japicmp.skip> |
| 37 | + </properties> |
| 38 | + |
| 39 | + <dependencies> |
| 40 | + <!-- The Hadoop file system abstraction --> |
| 41 | + <dependency> |
| 42 | + <groupId>org.apache.hadoop</groupId> |
| 43 | + <artifactId>hadoop-common</artifactId> |
| 44 | + <optional>${flink.markBundledAsOptional}</optional> |
| 45 | + </dependency> |
| 46 | + </dependencies> |
| 47 | + |
| 48 | + <build> |
| 49 | + |
| 50 | + <!-- this is merely an intermediate build artifact and should not be --> |
| 51 | + <!-- deployed to maven central --> |
| 52 | + <plugins> |
| 53 | + <plugin> |
| 54 | + <groupId>org.apache.maven.plugins</groupId> |
| 55 | + <artifactId>maven-deploy-plugin</artifactId> |
| 56 | + <configuration> |
| 57 | + <skip>true</skip> |
| 58 | + </configuration> |
| 59 | + </plugin> |
| 60 | + |
| 61 | + <!-- publish the core-site.xml for tests --> |
| 62 | + <plugin> |
| 63 | + <groupId>org.apache.maven.plugins</groupId> |
| 64 | + <artifactId>maven-jar-plugin</artifactId> |
| 65 | + <executions> |
| 66 | + <execution> |
| 67 | + <goals> |
| 68 | + <goal>test-jar</goal> |
| 69 | + </goals> |
| 70 | + </execution> |
| 71 | + </executions> |
| 72 | + </plugin> |
| 73 | + |
| 74 | + <!-- relocate all dependencies to hide them --> |
| 75 | + <plugin> |
| 76 | + <groupId>org.apache.maven.plugins</groupId> |
| 77 | + <artifactId>maven-shade-plugin</artifactId> |
| 78 | + <executions> |
| 79 | + <execution> |
| 80 | + <id>shade-flink</id> |
| 81 | + <phase>package</phase> |
| 82 | + <goals> |
| 83 | + <goal>shade</goal> |
| 84 | + </goals> |
| 85 | + <configuration> |
| 86 | + <artifactSet> |
| 87 | + <includes> |
| 88 | + <include>*:*</include> |
| 89 | + </includes> |
| 90 | + </artifactSet> |
| 91 | + <relocations> |
| 92 | + <!-- we shade only the parts that are internal to Hadoop and not used / exposed downstream --> |
| 93 | + <relocation> |
| 94 | + <pattern>com.google.re2j</pattern> |
| 95 | + <shadedPattern>org.apache.flink.fs.shaded.hadoop3.com.google.re2j</shadedPattern> |
| 96 | + </relocation> |
| 97 | + <relocation> |
| 98 | + <pattern>org.apache.htrace</pattern> |
| 99 | + <shadedPattern>org.apache.flink.fs.shaded.hadoop3.org.apache.htrace</shadedPattern> |
| 100 | + </relocation> |
| 101 | + <relocation> |
| 102 | + <pattern>com.fasterxml</pattern> |
| 103 | + <shadedPattern>org.apache.flink.fs.shaded.hadoop3.com.fasterxml</shadedPattern> |
| 104 | + </relocation> |
| 105 | + <relocation> |
| 106 | + <pattern>org.codehaus</pattern> |
| 107 | + <shadedPattern>org.apache.flink.fs.shaded.hadoop3.org.codehaus</shadedPattern> |
| 108 | + </relocation> |
| 109 | + <relocation> |
| 110 | + <pattern>com.ctc</pattern> |
| 111 | + <shadedPattern>org.apache.flink.fs.shaded.hadoop3.com.ctc</shadedPattern> |
| 112 | + </relocation> |
| 113 | + </relocations> |
| 114 | + <filters> |
| 115 | + <filter> |
| 116 | + <artifact>*</artifact> |
| 117 | + <excludes> |
| 118 | + <exclude>properties.dtd</exclude> |
| 119 | + <exclude>PropertyList-1.0.dtd</exclude> |
| 120 | + <exclude>META-INF/services/javax.xml.stream.*</exclude> |
| 121 | + <exclude>META-INF/LICENSE.txt</exclude> |
| 122 | + </excludes> |
| 123 | + </filter> |
| 124 | + </filters> |
| 125 | + </configuration> |
| 126 | + </execution> |
| 127 | + </executions> |
| 128 | + </plugin> |
| 129 | + </plugins> |
| 130 | + </build> |
| 131 | +</project> |
0 commit comments