Parcourir la source

HUE-584. Shade Thrift jar.

Previously we were including the Thrift library in
hue-plugins.jar, but we were not shading it.  This
change shades it so that there is no conflict
with other thrift libraries on the Hadoop classpath.
The libraries are shaded into com.cloudera.hue.*
Philip Zeyliger il y a 14 ans
Parent
commit
005a2d35aa
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      desktop/libs/hadoop/java/pom.xml

+ 7 - 1
desktop/libs/hadoop/java/pom.xml

@@ -147,6 +147,12 @@
                   <include>org.apache.thrift:libthrift</include>
                 </includes>
               </artifactSet>
+              <relocations>
+                <relocation>
+                  <pattern>org.apache.thrift</pattern>
+                  <shadedPattern>com.cloudera.hue.org.apache.thrift</shadedPattern>
+                </relocation>
+              </relocations>
             </configuration>
           </execution>
         </executions>
@@ -154,4 +160,4 @@
     </plugins>
   </build>
 </project>
-      
+