【问题标题】:Openshift Jenkins compilation errorOpenshift Jenkins 编译错误
【发布时间】: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 的版本?

【问题讨论】:

    标签: jenkins openshift


    【解决方案1】:

    在作业配置中我激活参数化执行选项并选择JDK7

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-04
      • 1970-01-01
      • 2015-11-03
      • 1970-01-01
      • 2020-12-12
      相关资源
      最近更新 更多