1. download
#git clone https://github.com/mvalleavila/flume-ng-sql-source.git
2. compile
#cd flume-ng-sql-source
#mvn package
error : source 1.3 (use -source 5 or higher to enable generics)
solution:
Add the below properties to your pom.xml.
<properties>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>1.6</maven.compiler.source>
</properties>
References
https://github.com/mvalleavila/flume-ng-sql-source
本文详细介绍了如何解决Maven编译时出现的错误,并通过修改POM.xml文件中的编译目标和源代码版本来解决源代码泛型问题。包括错误原因分析、解决方案以及参考链接。
1010

被折叠的 条评论
为什么被折叠?



