123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed 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. See accompanying LICENSE file.
- -->
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-project</artifactId>
- <version>3.0.2</version>
- <relativePath>../../hadoop-project</relativePath>
- </parent>
- <artifactId>hadoop-client-api</artifactId>
- <version>3.0.2</version>
- <packaging>jar</packaging>
- <description>Apache Hadoop Client</description>
- <name>Apache Hadoop Client API</name>
- <properties>
- <shaded.dependency.prefix>org.apache.hadoop.shaded</shaded.dependency.prefix>
- <!-- We contain no source -->
- <maven.javadoc.skip>true</maven.javadoc.skip>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client</artifactId>
- <!-- We list this as optional because as a type-pom it won't get included in the shading.
- Marking it optional means it doesn't count as a transitive dependency of this artifact.
- -->
- <optional>true</optional>
- <exclusions>
- <!-- these APIs are a part of the SE JDK -->
- <exclusion>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- This comes from our parent pom. If we don't expressly change it here to get included,
- downstream will get warnings at compile time. -->
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-annotations</artifactId>
- <scope>compile</scope>
- <exclusions>
- <exclusion>
- <groupId>jdk.tools</groupId>
- <artifactId>jdk.tools</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>shade</id>
- <activation>
- <property><name>!skipShade</name></property>
- </activation>
- <build>
- <plugins>
- <!-- We contain no source -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <configuration>
- <skipSource>true</skipSource>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-maven-plugins</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <artifactSet>
- <includes>
- <include>org.apache.hadoop:*</include>
- </includes>
- </artifactSet>
- <filters>
- <!-- We get these package level classes from various yarn api jars -->
- <filter>
- <artifact>org.apache.hadoop:hadoop-yarn-common</artifact>
- <excludes>
- <exclude>org/apache/hadoop/yarn/factories/package-info.class</exclude>
- <exclude>org/apache/hadoop/yarn/util/package-info.class</exclude>
- <exclude>org/apache/hadoop/yarn/factory/providers/package-info.class</exclude>
- <exclude>org/apache/hadoop/yarn/client/api/impl/package-info.class</exclude>
- <exclude>org/apache/hadoop/yarn/client/api/package-info.class</exclude>
- </excludes>
- </filter>
- </filters>
- <relocations>
- <relocation>
- <pattern>org/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.org.</shadedPattern>
- <excludes>
- <exclude>org/apache/hadoop/*</exclude>
- <exclude>org/apache/hadoop/**/*</exclude>
- <!-- Our non-shaded htrace and logging libraries -->
- <exclude>org/apache/htrace/*</exclude>
- <exclude>org/apache/htrace/**/*</exclude>
- <exclude>org/slf4j/*</exclude>
- <exclude>org/slf4j/**/*</exclude>
- <exclude>org/apache/commons/logging/*</exclude>
- <exclude>org/apache/commons/logging/**/*</exclude>
- <exclude>org/apache/log4j/*</exclude>
- <exclude>org/apache/log4j/**/*</exclude>
- <exclude>**/pom.xml</exclude>
- <!-- Not the org/ packages that are a part of the jdk -->
- <exclude>org/ietf/jgss/*</exclude>
- <exclude>org/omg/**/*</exclude>
- <exclude>org/w3c/dom/*</exclude>
- <exclude>org/w3c/dom/**/*</exclude>
- <exclude>org/xml/sax/*</exclude>
- <exclude>org/xml/sax/**/*</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>com/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.com.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- <!-- Not the com/ packages that are a part of particular jdk implementations -->
- <exclude>com/sun/tools/*</exclude>
- <exclude>com/sun/javadoc/*</exclude>
- <exclude>com/sun/security/*</exclude>
- <exclude>com/sun/jndi/*</exclude>
- <exclude>com/sun/management/*</exclude>
- <exclude>com/sun/tools/**/*</exclude>
- <exclude>com/sun/javadoc/**/*</exclude>
- <exclude>com/sun/security/**/*</exclude>
- <exclude>com/sun/jndi/**/*</exclude>
- <exclude>com/sun/management/**/*</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>io/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.io.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- <!-- Exclude config keys for Hadoop that look like package names -->
- <exclude>io/compression/*</exclude>
- <exclude>io/compression/**/*</exclude>
- <exclude>io/mapfile/*</exclude>
- <exclude>io/mapfile/**/*</exclude>
- <exclude>io/map/index/*</exclude>
- <exclude>io/seqfile/*</exclude>
- <exclude>io/seqfile/**/*</exclude>
- <exclude>io/file/buffer/size</exclude>
- <exclude>io/skip/checksum/errors</exclude>
- <exclude>io/sort/*</exclude>
- <exclude>io/serializations</exclude>
- </excludes>
- </relocation>
- <!-- JSRs that haven't made it to inclusion in J2SE -->
- <relocation>
- <pattern>javax/el/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.javax.el.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>javax/cache/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.javax.cache.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>javax/servlet/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.javax.servlet.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>javax/ws/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.javax.ws.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- </excludes>
- </relocation>
- <relocation>
- <pattern>net/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.net.</shadedPattern>
- <excludes>
- <exclude>**/pom.xml</exclude>
- <!-- Exclude config keys for Hadoop that look like package names -->
- <exclude>net/topology/*</exclude>
- <exclude>net/topology/**/*</exclude>
- </excludes>
- </relocation>
- <!-- okio declares a top level package instead of nested -->
- <relocation>
- <pattern>okio/</pattern>
- <shadedPattern>${shaded.dependency.prefix}.okio.</shadedPattern>
- </relocation>
- </relocations>
- <transformers>
- <!-- Needed until MSHADE-182 -->
- <transformer implementation="org.apache.hadoop.maven.plugin.shade.resource.ServicesResourceTransformer"/>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
- <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
- <resource>NOTICE.txt</resource>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
- <resource>META-INF/LICENSE.txt</resource>
- <file>${basedir}/../../LICENSE.txt</file>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
- <resource>META-INF/NOTICE.txt</resource>
- <file>${basedir}/../../NOTICE.txt</file>
- </transformer>
- </transformers>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>license-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>noshade</id>
- <activation>
- <property><name>skipShade</name></property>
- </activation>
- <build>
- <plugins>
- <!-- We contain no source -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <configuration>
- <skipSource>true</skipSource>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>license-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|