HADOOP-14672. Shaded Hadoop-client-minicluster include unshaded classes, like: javax, sax, dom, etc. Contributed by Bharat Viswanadham.

This commit is contained in:
Junping Du 2017-07-30 22:14:54 -07:00
parent f14be0d241
commit 481385ea8a

View File

@ -126,6 +126,10 @@
<groupId>javax.xml.bind</groupId> <groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId> <artifactId>jaxb-api</artifactId>
</exclusion> </exclusion>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion> <exclusion>
<groupId>org.apache.avro</groupId> <groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId> <artifactId>avro</artifactId>
@ -624,6 +628,12 @@
<exclude>**/*.class</exclude> <exclude>**/*.class</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>xerces:xercesImpl</artifact>
<excludes>
<exclude>**/*</exclude>
</excludes>
</filter>
</filters> </filters>
<relocations> <relocations>
<relocation> <relocation>
@ -646,6 +656,7 @@
<exclude>org/junit/*</exclude> <exclude>org/junit/*</exclude>
<exclude>org/junit/**/*</exclude> <exclude>org/junit/**/*</exclude>
<!-- Not the org/ packages that are a part of the jdk --> <!-- Not the org/ packages that are a part of the jdk -->
<exclude>org/ietf/jgss/*</exclude> <exclude>org/ietf/jgss/*</exclude>
<exclude>org/omg/**/*</exclude> <exclude>org/omg/**/*</exclude>
<exclude>org/w3c/dom/*</exclude> <exclude>org/w3c/dom/*</exclude>
@ -654,6 +665,13 @@
<exclude>org/xml/sax/**/*</exclude> <exclude>org/xml/sax/**/*</exclude>
</excludes> </excludes>
</relocation> </relocation>
<relocation>
<pattern>contribs/</pattern>
<shadedPattern>${shaded.dependency.prefix}.contribs.</shadedPattern>
<excludes>
<exclude>**/pom.xml</exclude>
</excludes>
</relocation>
<relocation> <relocation>
<pattern>com/</pattern> <pattern>com/</pattern>
<shadedPattern>${shaded.dependency.prefix}.com.</shadedPattern> <shadedPattern>${shaded.dependency.prefix}.com.</shadedPattern>
@ -691,6 +709,13 @@
<exclude>io/serializations</exclude> <exclude>io/serializations</exclude>
</excludes> </excludes>
</relocation> </relocation>
<relocation>
<pattern>javassist/</pattern>
<shadedPattern>${shaded.dependency.prefix}.javassist.</shadedPattern>
<excludes>
<exclude>**/pom.xml</exclude>
</excludes>
</relocation>
<relocation> <relocation>
<pattern>javax/el/</pattern> <pattern>javax/el/</pattern>
<shadedPattern>${shaded.dependency.prefix}.javax.el.</shadedPattern> <shadedPattern>${shaded.dependency.prefix}.javax.el.</shadedPattern>
@ -712,6 +737,13 @@
<exclude>**/pom.xml</exclude> <exclude>**/pom.xml</exclude>
</excludes> </excludes>
</relocation> </relocation>
<relocation>
<pattern>jersey/</pattern>
<shadedPattern>${shaded.dependency.prefix}.jersey.</shadedPattern>
<excludes>
<exclude>**/pom.xml</exclude>
</excludes>
</relocation>
<relocation> <relocation>
<pattern>net/</pattern> <pattern>net/</pattern>
<shadedPattern>${shaded.dependency.prefix}.net.</shadedPattern> <shadedPattern>${shaded.dependency.prefix}.net.</shadedPattern>