hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li...@apache.org
Subject svn commit: r1551660 - /hbase/branches/0.89-fb/pom.xml
Date Tue, 17 Dec 2013 19:18:44 GMT
Author: liyin
Date: Tue Dec 17 19:18:44 2013
New Revision: 1551660

URL: http://svn.apache.org/r1551660
Log:
[HBASE-10177] Fix the netty dependency issue

Author: gauravm

Summary:
The netty developers changed their group id from org.jboss.netty to io.netty. As a result,
the zookeeper and hadoop dependencies pull in the older netty (3.2.2) and swift related dependencies
pull in the newer netty (3.7.0). As a result we get ClassNotFoundExceptions, when the older
3.2.2 jar is picked up in place of 3.7.0.

This is the same as the commit made on the swift branch.

Test Plan: mvn dependency:tree doesn't pull in the 3.2.2 jar.

Reviewers: rshroff, liyintang, aaiyer, adela, fan

Reviewed By: adela

CC: hbase-dev@, daviddeng

Differential Revision: https://phabricator.fb.com/D1100077

Task ID: 3076680

Modified:
    hbase/branches/0.89-fb/pom.xml

Modified: hbase/branches/0.89-fb/pom.xml
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/pom.xml?rev=1551660&r1=1551659&r2=1551660&view=diff
==============================================================================
--- hbase/branches/0.89-fb/pom.xml (original)
+++ hbase/branches/0.89-fb/pom.xml Tue Dec 17 19:18:44 2013
@@ -577,7 +577,7 @@
     <commons-logging.version>1.1.1</commons-logging.version>
     <jetty.version>6.1.24</jetty.version>
     <jetty.jspapi.version>6.1.14</jetty.jspapi.version>
-    <netty.version>3.2.2.Final</netty.version>
+    <netty.version>3.7.0.Final</netty.version>
     <junit.version>4.8.1</junit.version>
     <mockito-all.version>1.9.5</mockito-all.version>
     <log4j.version>1.2.16</log4j.version>
@@ -639,6 +639,13 @@
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-core</artifactId>
         <version>${hadoop.version}</version>
+        <exclusions>
+            <exclusion>
+                <!-- Swift uses a newer version named io.netty:netty -->
+                <groupId>org.jboss.netty</groupId>
+                <artifactId>netty</artifactId>
+            </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>${project.groupId}</groupId>
@@ -656,6 +663,13 @@
         <groupId>org.apache.zookeeper</groupId>
         <artifactId>zookeeper</artifactId>
         <version>${zookeeper.version}</version>
+        <exclusions>
+          <exclusion>
+            <!-- Swift uses a newer version named io.netty:netty -->
+            <groupId>org.jboss.netty</groupId>
+            <artifactId>netty</artifactId>
+            </exclusion>
+        </exclusions>
       </dependency>
 
       <dependency>
@@ -802,9 +816,9 @@
       <version>${jetty.jspapi.version}</version>
     </dependency>
     <dependency>
-      <groupId>org.jboss.netty</groupId>
-      <artifactId>netty</artifactId>
-      <version>${netty.version}</version>
+        <groupId>io.netty</groupId>
+        <artifactId>netty</artifactId>
+        <version>${netty.version}</version>
     </dependency>
     <dependency>
       <groupId>tomcat</groupId>



Mime
View raw message