运行JUnit测试时,使用IntelliJ IDEA,我得到了

我怎么能纠正这个?
Maven构建工作正常.(这就是我在IDEA配置问题中相信这一点的原因)
我在IntelliJ,JDK1.8,maven 3.2.5中使用maven.编译错误:使用-source 7或更高版本启用钻石歌剧.详情如下:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] TrainingConstructor.java:[31,55] diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)
[ERROR] DTM.java:[79,21] try-with-resources is not supported in -source 1.5 (use -source 7 or higher to enable try-with-resources)
[ERROR] ticons.java:[53,44] diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)
Run Code Online (Sandbox Code Playgroud)
有什么建议?是否有其他配置来设置此-source级别?好像它不使用java 1.8.