如果在Maven构建时出现:

diamond operator is not supported in -source 1.5
(use -source 7 or higher to enable diamond operator)

的错误,是由于使用了complier的插件版本为1.5导致的,因为在默认不配置情况下,Maven3默认为1.5,此时如果项目上使用泛型,那么就会出现错误。

解决方法就是升级为1.8,具体参考:http://www.cnblogs.com/EasonJim/p/6810758.html

相关文章:

  • 2021-06-10
  • 2021-08-03
  • 2021-07-10
  • 2021-12-21
  • 2021-04-22
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2022-01-21
  • 2022-12-23
  • 2021-08-21
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案