【发布时间】:2016-09-21 14:40:22
【问题描述】:
我正在尝试在 jenkins Openshift 墨盒上运行 maven compile,但出现此错误:
error: diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
我猜这是安装的 JDK 的问题。
如何更改 JDK 的版本?
【问题讨论】: