编译dubbo2.5.4时遇到的问题及解决

dubbo的官方git地址为:https://github.com/alibaba/dubbo

按照其流程进行下载及编译,遇到的问题为:

1. 执行 mvn clean install -Dmaven.test.skip时报错:

generics are not supported in -source 1.3

问题原因:maven 默认采用了低版本的jre来编译

解决办法:指定高版本编译mvn clean install -Dmaven.test.skip -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

原文地址:https://www.cnblogs.com/hutao722/p/5610200.html