浏览代码

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 14 年之前
父节点
当前提交
005a2d35aa
共有 1 个文件被更改,包括 7 次插入1 次删除
  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>
-      
+