Dubbo Dependencies#
必须依赖#
JDK 1.6+
缺省依赖#
通过 mvn dependency:tree > dep.log
命令分析,Dubbo 缺省依赖以下三方库:
[INFO] +- com.alibaba:dubbo:jar:2.5.9-SNAPSHOT:compile
[INFO] | +- org.springframework:spring-context:jar:4.3.10.RELEASE:compile
[INFO] | +- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | \- org.jboss.netty:netty:jar:3.2.5.Final:compile
缺省值是基于稳定性和性能考虑
javassist.jar: 如果
<dubbo:provider proxy="jdk" />
或<dubbo:consumer proxy="jdk" />
,以及<dubbo:application compiler="jdk" />
,则不需要spring-context.jar: 如果用
ServiceConfig
和ReferenceConfig
的 API 调用,则不需要netty.jar: 如果
<dubbo:protocol server="mina"/>
或<dubbo:protocol server="grizzly"/>
,则换成 mina.jar 或 grizzly.jar。如果<protocol name="rmi"/>
,则不需要
可选依赖#
netty-all 4.0.35.Final
mina: 1.1.7
grizzly: 2.1.4
httpclient: 4.5.3
hessian_lite: 3.2.1-fixed
fastjson: 1.2.31
zookeeper: 3.4.9
jedis: 2.9.0
xmemcached: 1.3.6
hessian: 4.0.38
jetty: 6.1.26
hibernate-validator: 5.4.1.Final
zkclient: 0.2
curator: 2.12.0
cxf: 3.0.14
thrift: 0.8.0
servlet: 3.0
validation-api: 1.1.0.GA
jcache: 1.0.0
javax.el: 3.0.1-b08
kryo: 4.0.1
kryo-serializers: 0.42
fst: 2.48-jdk-6
resteasy: 3.0.19.Final
tomcat-embed-core: 8.0.11
slf4j: 1.7.25
log4j: 1.2.16